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

command-line specification of plugin parameters doesn't work when plugin is configured in POM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha-1
    • 2.0-alpha-3
    • Plugins and Lifecycle
    • None
    • all

    Description

      For instance, when the modello plugin has:

      <configuration>
      <model>maven.mdo</model>
      <version>4.0.0</version>
      </configuration>

      using -Dmodel=maven-other.mdo -Dversion=5.0.0 will not override the configuration in the pom.xml.

      Command-line specifications should always override other configuration, where overrides can be made deterministically. I'm not sure that we can be deterministic here, if multiple <goal/> level configs are made (for modello:java, f.e.).

      We need to fix this if it is reasonable to do so, or else document the hell out of it if not.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              jdcasey John Dennis Casey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: