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

Cannot override configuration parameter from command line

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: Plugins and Lifecycle
    • Labels:
      None

      Description

      See the attachements for a sample project of the surefire integration tests.

      Its pom sets the skipTests option of the surefire-plugin to false.

      <plugin>
        ...
        <configuration>
          <skipTests>false</skipTests>
        </configuration>
      </plugin>
      

      This configuration is not overriden by the appropriate command line parameter:
      mvn -DskipTests=true test
      Executing this line will set the skipTests parameter of the Surefire plugin to false and the tests will not be skipped.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                mail@stefan-birkner.de Stefan Birkner
              • Votes:
                10 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: