Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1329

Fix expression vs default-value in maven plugins

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.5
    • 1.5.5
    • schema-plugin
    • 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."

      Attachments

        Activity

          People

            felixk Felix Knecht
            felixk Felix Knecht
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: