[ http://jira.codehaus.org/browse/MNG-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_85859 ]
Geoffrey De Smet commented on MNG-2206: --------------------------------------- Is my problem of "cmd line property does not override others" is probably the same issue: [based on m2.0.5's first rc on the dev list] I have this profile in my pom.xml: <profile> <id>development</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <no.daisy.test>true</no.daisy.test> <maven.test.skip>${no.daisy.test}</maven.test.skip> </properties> </profile> So without my settings.xml "mvn install" doesn't run the tests. But in my settings.xml I have a profile like this: <profile> <id>daisy_1_5</id> <properties> <no.daisy.test>false</no.daisy.test> ... </properties> </profile> So now "mvn install" does run the tests. However when I now try mvn -Dmaven.test.skip install The tests are still run, while I expected my cmd line variable to overwrite my pom.xml and setting.xml properties. > bad properties interpolation with profiles > ------------------------------------------- > > Key: MNG-2206 > URL: http://jira.codehaus.org/browse/MNG-2206 > Project: Maven 2 > Issue Type: Bug > Components: Inheritance and Interpolation > Affects Versions: 2.0.3 > Environment: cygwin > Reporter: Olivier Lamy > Assigned To: Edwin Punzalan > Priority: Blocker > Fix For: 2.0.x > > Attachments: MNG-2206-maven-project.patch, pom.xml > > Original Estimate: 2 hours > Remaining Estimate: 2 hours > > create two profiles in your settings.xml > - id test with a property <test>dev</test> > - id snapshots with a property <test>snapshots</test> > <activeProfiles> > <activeProfile>dev</activeProfile> > <activeProfile>snapshots</activeProfile> > </activeProfiles> > With the attached pom run : > mvn validate : > [echo] dev > mvn -P snapshots validate : > [echo] dev > Olivier -- 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