Skip to content

[MPH-386] Report resolved plugin coordinates on lookup failure - #438

Merged
slachiewicz merged 1 commit into
apache:masterfrom
efegokdemir:codex/issue-386-describe-error
Oct 27, 2026
Merged

slachiewicz merged 1 commit into
apache:masterfrom
efegokdemir:codex/issue-386-describe-error

Conversation

@efegokdemir

Copy link
Copy Markdown
Contributor

Summary

Use the resolved plugin coordinates when help:describe cannot retrieve a plugin descriptor.

When a plugin is selected by prefix, the mojo's direct groupId, artifactId, and version fields are unset. The previous error therefore reported null coordinates even though the prefix lookup had resolved them.

Changes

  • Build the descriptor lookup failure message from the resolved Plugin request.
  • Add a regression test covering prefix lookup with a descriptor failure.

Testing

  • mvn -Dspotless.skip=true -DskipTests=false test — passed; 31 tests passed.
  • Checkstyle, Apache RAT, compilation, and git diff --check — passed.
  • Spotless was skipped because the available JDK triggers the repository's existing Palantir formatter NoSuchFieldError in unchanged files.

Notes

This contribution was prepared with AI assistance and reviewed against the existing DescribeMojo lookup flow and test conventions.

Fixes #386

@slachiewicz slachiewicz added the bug Something isn't working label Oct 27, 2026
@slachiewicz
slachiewicz force-pushed the codex/issue-386-describe-error branch from 3418cc2 to c8d6932 Compare October 27, 2026 20:56
@slachiewicz
slachiewicz requested a balanced review from Copilot October 27, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions

Copy link
Copy Markdown

⚠️ License declaration missing

The pull request description must contain at least one of the following lines with a checked box ([x]):

- [ ] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
- [ ] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).

This comment will be hidden automatically once the description is fixed.

@slachiewicz
slachiewicz merged commit 4d06134 into apache:master Oct 27, 2026
18 of 19 checks passed
@github-actions github-actions Bot added this to the 3.5.3 milestone Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DescribeMojo.lookupPluginDescriptor() error message references null mojo fields

3 participants