Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-1936

pattern: for mojo parameters which have default values in the POM we need standard usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      For mojo parameters which have default values in the POM but can be overriden we should have a standard way of doing this:

      /**

      • Directory containing the generated JAR.
        *
      • @parameter expression="${outputDirectory}" default-value="${pom.build.outputDirectory}"
      • @required
        */
        private File outputDirectory;

      So there is a short name which can be overriden in a POM configuration or the command line (outputDirectory), but if not specified we'll fall back to the standard recommended value in the POM. There is some inconsistencies in a lot of the plug-ins with respect to this.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              jvanzyl Jason van Zyl
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: