DescribeMojo.lookupPluginDescriptor() error message references null mojo fields
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- java
- Domain
- build-system
Research direction
Start in src/main/java/org/apache/maven/plugins/help/DescribeMojo.java:333-338 and trace the PluginInfo parameter used by lookupPluginDescriptor(). Reproduce the prefix form with -Dplugin=help, then verify the error output reports the actual plugin coordinates rather than null mojo fields.
Written by the indexing model from the issue text.
Description
In src/main/java/org/apache/maven/plugins/help/DescribeMojo.java:333-338:
throw new MojoExecutionException(
"Error retrieving plugin descriptor for:" + LS + LS + "groupId: \x27" + groupId + "\x27" + LS
+ "artifactId: \x27" + artifactId + "\x27" + LS + "version: \x27" + version + "\x27" + LS + LS, e);
When the plugin was specified by prefix (e.g., -Dplugin=help), the mojo fields groupId, artifactId, version are all null. The method parameter PluginInfo pi contains the actual values but the error message ignores them. Output shows groupId: \x27null\x27 etc. — misleading and unhelpful for debugging.
- Dominant language
- Java
- Stars
- 29
- Forks
- 42
- Avg merge
- 23h 15m
- Merged PRs (30d)
- 6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-help-plugin
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 82/100
apache/maven-help-plugin#394 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-help-plugin#389 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/maven-help-plugin#388 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/maven-help-plugin#385 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/maven-help-plugin#384 · 2 comments ·
All issues in apache/maven-help-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100