You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Birkner (JIRA)" <ji...@codehaus.org> on 2011/01/14 20:43:58 UTC
[jira] Created: (MNG-4979) Cannot override configuration parameter
from command line
Cannot override configuration parameter from command line
---------------------------------------------------------
Key: MNG-4979
URL: http://jira.codehaus.org/browse/MNG-4979
Project: Maven 2 & 3
Issue Type: Bug
Components: Plugins and Lifecycle
Affects Versions: 2.2.1
Reporter: Stefan Birkner
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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-4979) Cannot override configuration
parameter from command line
Posted by "Stefan Birkner (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251641#action_251641 ]
Stefan Birkner commented on MNG-4979:
-------------------------------------
I looked at the code of org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(...) and discovered the reason for this bug. The line
PlexusConfiguration mergedConfiguration = mergeMojoConfiguration( pomConfiguration, mojoDescriptor );
sets the skipTests parameter to the value of the pom. Afterwards this value is not be overriden, because it is already set.
> Cannot override configuration parameter from command line
> ---------------------------------------------------------
>
> Key: MNG-4979
> URL: http://jira.codehaus.org/browse/MNG-4979
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Plugins and Lifecycle
> Affects Versions: 2.2.1
> Reporter: Stefan Birkner
>
> 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira