-
Notifications
You must be signed in to change notification settings - Fork 302
support mojo properties #470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, Essentially this plugin has two major switches that work from command-line right now:
The ugly part of using properties is that the configuration within the XML always overwrites whatever is provided via command-line. IMHO maven should work in a way where the command-line argument should overwrite whatever is configured in the XML. So just adding 'property' is counter intuitive. This is related to #315 and https://issues.apache.org/jira/browse/MNG-6278. Basically the maven maintainers consider this expected behaviour and if you want any other configuration exposed as configuration you should be able to follow the 'standard' way by specifying properties and using them inside the config:
|
Describe your idea
Use https://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/apache/maven/plugins/annotations/Parameter.html#property-- so that one can more easily override parameters in child-pom's / on command line.
Expected Behavior
Today you can only configure plugin explicitly in an xml section, making it harder to parameterize behaviour.
Additional context
See other maven plugins for inspiration, for instance surefire.
The text was updated successfully, but these errors were encountered: