slachiewicz opened a new pull request, #1200: URL: https://github.com/apache/maven-plugin-tools/pull/1200
`AntMojoDescriptorExtractor` adds a `org.apache.maven.project.path.PathTranslator` component requirement to every Ant mojo, and `AntMojoWrapper` keeps a field for it. Neither ever did anything: the descriptor generator only writes requirements that come from parameters ([MPLUGIN-160](https://github.com/apache/maven-plugin-tools/issues/579)), so the requirement never reached a generated `plugin.xml` and the field was always null. The class reference is the last link from Ant mojos to the `org.apache.maven.project.path` package, which Maven 4 moved into `maven-compat` (apache/maven#8177). This removes the requirement, the field and its accessors. A requirement declared by the plugin author in `mojos.xml` is still passed through, which is what the extractor test now checks. Verified: `mvn verify -Prun-its -Dinvoker.test='ant-*'` → 4 passed; an Ant plugin built with this branch runs on a Maven 3.9.16 whose `maven-compat` jar was removed, and its `plugin.xml` matches the 3.16.0 one (no `<requirements>` in either). *This change was created with AI assistance.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
