slachiewicz opened a new issue, #13813: URL: https://github.com/apache/maven/issues/13813
### Affected version master (d9746769), 4.0.0-rc-7 ### Bug description When the goal of a method-level `@InjectMojo` matches no mojo in the plugin descriptor, `createMojoExecution` ends in `requireNonNull(mes.descriptor())` ([`MojoExtension.java:520`](https://github.com/apache/maven/blob/master/impl/maven-testing/src/main/java/org/apache/maven/testing/plugin/MojoExtension.java#L520)). The test fails with ``` org.apache.maven.di.impl.DIException: Failed to call method private org.apache.maven.api.MojoExecution org.apache.maven.testing.plugin.MojoExtension$1Foo.createMojoExecution() Caused by: java.lang.NullPointerException ``` which names neither the goal nor the plugin. A typo in a goal is the usual cause, so the message should name the goal and list the available ones. -- 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]
