[ https://issues.apache.org/jira/browse/MNG-4979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853944#comment-16853944 ]
Robert Scholte commented on MNG-4979: ------------------------------------- By giving the configuration a final version, you'll turn it into a constant, replacing the expression to a specific value that cannot be overridden via commandline. That's a feature. The proper way to solve this is by changing its value via properties: {code:xml} <properties> <skipTests>false</skipTests> </properties> {code} Now you can override it via commandline. > Cannot override configuration parameter from command line > --------------------------------------------------------- > > Key: MNG-4979 > URL: https://issues.apache.org/jira/browse/MNG-4979 > Project: Maven > Issue Type: Bug > Components: Plugins and Lifecycle > Affects Versions: 2.2.1 > Reporter: Stefan Birkner > Priority: Major > > 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. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)