slachiewicz opened a new pull request, #302:
URL: https://github.com/apache/maven-plugin-testing/pull/302

   `MojoExtension.finalizeConfig` fell back to the element named like a 
parameter's alias but kept that name, so `@InjectMojo` failed with `Cannot find 
'<alias>' in class ...` for a POM that Maven accepts. The element is now copied 
under the parameter name, as Maven does when it finalizes a mojo configuration.
   
   `ParametersMojo` gets a `withAlias` parameter with alias `aliased`, and 
`testAliasPom` configures it through `src/test/projects/alias/pom.xml`; without 
the fix it fails with `Cannot find 'aliased'`.
   
   Verified: `mvn verify -pl maven-plugin-testing-harness` → 62 tests pass.
   
   Fixes #300


-- 
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]

Reply via email to