Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.5
-
None
-
All
Description
Following the guide to plugin development it can't be good style to have annotations like
@parameter expression="foobar"
Found such 'expressions' in BootstrapPlugin and DirectorySchemaToolMojo.
This is a missuse to generate a default-value. From http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
"The parameter annotation identifies the variable as a mojo parameter. The default-value parameter of the annotation defines the default value for the variable. This value can include expressions which reference the project, such as "${project.version}" (more can be found in the "Parameter Expressions" document). The expression parameter can be used to allow configuration of the mojo parameter from the command line by referencing a system property that the user sets via the -D option."