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
-
Activity
Brett Porter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.4 [ 13243 ] |
Dan Fabulich
made changes -
| Fix Version/s | 2.x [ 13647 ] | |
| Fix Version/s | 2.4 [ 13243 ] |
Kristian Rosenvold
made changes -
| Component/s | Maven Surefire Plugin [ 12561 ] |
Stefan Birkner
made changes -
Kristian Rosenvold
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Kristian Rosenvold [ krosenvold ] | |
| Fix Version/s | 2.7.2 [ 17030 ] | |
| Fix Version/s | Backlog [ 13647 ] | |
| Resolution | Fixed [ 1 ] |
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>