[ http://jira.codehaus.org/browse/SUREFIRE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123340 ]
jialu edited comment on SUREFIRE-319 at 2/11/08 6:26 PM: ----------------------------------------------------------- We expereience same issue. It would be very useful if the "skip" values in pom.xml can be overridden in command line. e.g pom.xml <configuration> <skip>true</skip> </configuration> Developers can simply build without junit test by just using "mvn install" . And "mvn install -Dmaven.test.skip=false" will build and run JUnit tests. was (Author: jialu): We expereience same issue. It would be very useful if the "skip" values in pom.xml can be overridden in command line. e.g pom.xml <configuration> <skip>true</skip> </configuration> Developers can simply build without junit test by just using "mvn install" . And "mvn install -Dmaven.test.skip=true" will build and run JUnit tests. > <skip>true</skip> cannot be overridden using mvn -Dmaven.test.skip=false test > ----------------------------------------------------------------------------- > > Key: SUREFIRE-319 > URL: http://jira.codehaus.org/browse/SUREFIRE-319 > Project: Maven Surefire > Issue Type: Bug > 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) > Reporter: Graham Leggett > Fix For: 2.x > > > 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. -- 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