GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Drop the PathTranslator requirement from Ant mojos by slachiewicz · Pull Request #1200 · apache/maven-plugin-tools

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Sep 19, 2026

Copy link
Copy Markdown
Member

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), 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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@slachiewicz
Drop the PathTranslator requirement from Ant mojos
2a647a6
The extractor added a PathTranslator component requirement to every
Ant mojo descriptor, but the descriptor generator only writes
parameter-based requirements (MPLUGIN-160), so it never reached
plugin.xml and AntMojoWrapper's pathTranslator was always null. The
class reference is the last link from Ant mojos to
org.apache.maven.project.path, which Maven 4 moved to maven-compat.
@slachiewicz slachiewicz added maintenance 3.x labels Sep 19, 2026
@slachiewicz slachiewicz mentioned this pull request Sep 19, 2026
[MNG-7266] Remove maven-compat module apache/maven#8177
Open
5 of 19 tasks
@slachiewicz
slachiewicz marked this pull request as ready for review September 19, 2026 03:17
@slachiewicz
slachiewicz merged commit 8b7210a into maven-plugin-tools-3.x Sep 19, 2026
21 of 22 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
slachiewicz deleted the agent/ant-mojo-pathtranslator branch September 19, 2026 09:38
@github-actions github-actions Bot added this to the 3.16.1 milestone Sep 19, 2026
@github-actions github-actions Bot assigned slachiewicz Sep 19, 2026
@slachiewicz slachiewicz mentioned this pull request Oct 5, 2026
Planned releases — Q4 2026 (Doxia stack + plugins + shared deps) apache/maven#13085
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@slachiewicz slachiewicz

Labels

3.x maintenance

Projects

None yet

Milestone

3.16.1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@slachiewicz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.