Skip to content

Fix FMPP xml-resolver resolution with local metadata - #1103

Open
hongzhi-gao wants to merge 1 commit into
apache:developfrom
hongzhi-gao:fix/fmpp-xml-resolver-range
Open

hongzhi-gao wants to merge 1 commit into
apache:developfrom
hongzhi-gao:fix/fmpp-xml-resolver-range

Conversation

@hongzhi-gao

Copy link
Copy Markdown
Contributor

FMPP transitively declares xml-resolver:[1.1,). With Maven 3.10.0, a local metadata file listing version 1.2 can cause that version to be resolved as a local installation, even when its JAR is only registered as a remote download. Plugin resolution then fails with verifying that is downloadable from [] / Could not find artifact xml-resolver:xml-resolver:jar:1.2.

Pin xml-resolver:1.2 as a direct dependency of drill-fmpp-maven-plugin. This retains the currently selected artifact version and affects build tooling only; runtime dependencies and generated code are unchanged.

Related to #1084 and Jenkins develop build #600. The failure was reproduced locally at the same revision (b16df6b0); the Jenkins node's cache has not been inspected.

Validation used Maven 3.10.0, JDK 17, empty user settings, and an isolated local repository. The repository contained a Central-downloaded xml-resolver:1.2 JAR plus maven-metadata-local.xml listing 1.2:

  • mvn -P with-java -pl java/tsfile -am clean test-compile -DskipTests: unpatched fails with the same empty-repository error; patched passes with the same cache.
  • Removing only the local-install metadata allows the unpatched build to pass. Its 30 generated Java files match the patched build byte for byte.
  • mvn -P with-java -pl java/tsfile -am test -Dtest=FilterSerializeTest,StatisticsFilterTest -Dsurefire.failIfNoSpecifiedTests=false: 26 tests passed, none skipped.
  • Checkstyle, Spotless, and git diff --check passed.

The full Java test suite and a Jenkins rerun were not executed.

@hongzhi-gao

Copy link
Copy Markdown
Contributor Author

@ColinLeeo PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant