Fix expression vs default-value in maven plugins
------------------------------------------------

                 Key: DIRSERVER-1329
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1329
             Project: Directory ApacheDS
          Issue Type: Task
          Components: schema-plugin
    Affects Versions: 1.5.5
         Environment: All
            Reporter: Felix Knecht
            Assignee: Felix Knecht
            Priority: Minor
             Fix For: 1.5.5


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."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to