Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.7.2
-
Component/s: Maven Surefire Plugin
-
Labels:None
-
Environment:java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b01, mixed mode)
-
Complexity:Intermediate
-
Number of attachments :
Description
If the pom file is configured to skip tests using <skip>true</skip>, and an attempt is made to override this on the command line using mvn -Dmaven.test.skip=false test, the attempt does not work (the test is still skipped).
In theory, the command line flag should override the pom setting.
Issue Links
- duplicates
-
MNG-4979
Cannot override configuration parameter from command line
-
maven.test.skip is a setting from maven 1. You can do something like the following in your pom.xml and then override it in command line with mvn goal -Dvar.name=value
<plugin>
{test.skip}<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>$
</skip>
</configuration>
</plugin>
...
<properties>
<test.skip>true</test.skip>
</properties>