You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2019/06/03 20:49:00 UTC

[jira] [Updated] (MNG-4979) Cannot override configuration parameter from command line

     [ https://issues.apache.org/jira/browse/MNG-4979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MNG-4979:
--------------------------------
    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.
{code:xml}
<plugin>
  ...
  <configuration>
    <skipTests>false</skipTests>
  </configuration>
</plugin>
{code}

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.

 

  was:
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.

 


> 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.
> {code:xml}
> <plugin>
>   ...
>   <configuration>
>     <skipTests>false</skipTests>
>   </configuration>
> </plugin>
> {code}
> 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)