[jira] Commented: (MNG-2206) bad properties interpolation with profiles
[ 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 iddevelopment/id activation activeByDefaulttrue/activeByDefault /activation properties no.daisy.testtrue/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 iddaisy_1_5/id properties no.daisy.testfalse/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 testdev/test - id snapshots with a property testsnapshots/test activeProfiles activeProfiledev/activeProfile activeProfilesnapshots/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
[jira] Commented: (MNG-2206) bad properties interpolation with profiles
[ http://jira.codehaus.org/browse/MNG-2206?page=comments#action_65662 ] Olivier Lamy commented on MNG-2206: --- Sorry for bad explanation concerning this issue. I try again ;-). My pom contains : plugin artifactIdmaven-antrun-plugin/artifactId configuration tasks echo${value}/echo /tasks /configuration executions execution phasevalidate/phase configuration tasks echo${value}/echo /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin My settings contains : - profile iddev/dev activeByDefaulttrue/activeByDefault and in properties section of this profile valuedev/value - profile idsnapshots/id and in properties section of this profile valuesnapshots/value + in settings activeProfiles activeProfiledev/activeProfile activeProfilesnapshots/activeProfile /activeProfiles running mvn validate or mvn validate -P snapshots always displays : [echo] dev. running mvn validate -Dvalue=foo displays well value : [echo] foo But this doesn't seems to works with the P commands to activate properties values stored in the settings for each profiles. My use case is the following : I need to store some databases passwords with different profiles (dev,integration, user test and production) and with profile activation with the cli -P, I expect to have a expression replacement. I hope it's a better explanation ? Olivier bad properties interpolation with profiles --- Key: MNG-2206 URL: http://jira.codehaus.org/browse/MNG-2206 Project: Maven 2 Type: Bug Components: Inheritence and Interpolation Versions: 2.0.3 Environment: cygwin Reporter: Olivier Lamy Priority: Blocker Attachments: pom.xml create two profiles in your settings.xml - id test with a property testdev/test - id snapshots with a property testsnapshots/test activeProfiles activeProfiledev/activeProfile activeProfilesnapshots/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
[jira] Commented: (MNG-2206) bad properties interpolation with profiles
[ http://jira.codehaus.org/browse/MNG-2206?page=comments#action_65638 ] Kenney Westerhof commented on MNG-2206: --- I don't see any 'activeByDefault' in the issue description. If you activate both profiles then currently they're both activated, which is correct. However, the order in which they're activated is random. If you activate the 'dev' profile by default, and remove the 'snapshots' profile, then dev is always activated. If you then specify -Psnapshots it should override the test property with the new value 'snapshots'. But since this is random, the OS/jdk combination determines which one wins. Is this a correct explanation of the above problem? bad properties interpolation with profiles --- Key: MNG-2206 URL: http://jira.codehaus.org/browse/MNG-2206 Project: Maven 2 Type: Bug Components: Inheritence and Interpolation Versions: 2.0.3 Environment: cygwin Reporter: Olivier Lamy Priority: Blocker Attachments: pom.xml create two profiles in your settings.xml - id test with a property testdev/test - id snapshots with a property testsnapshots/test activeProfiles activeProfiledev/activeProfile activeProfilesnapshots/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
[jira] Commented: (MNG-2206) bad properties interpolation with profiles
[ http://jira.codehaus.org/browse/MNG-2206?page=comments#action_63047 ] Olivier Lamy commented on MNG-2206: --- Sorry for bad entry in the issue. read id dev with a property testdev/test instead of the previous. And that's what I have done. And I have the same result. But you mean activeByDefault override the profile forced in the cli ?? I have problem with this because i need to declare my company repositories in the default profile. I'm agree on remove activeByDefault : It works on a solaris machine but not on my cygwin (probably a bad configuration of it on my machine I will check). Thanks, Olivier bad properties interpolation with profiles --- Key: MNG-2206 URL: http://jira.codehaus.org/browse/MNG-2206 Project: Maven 2 Type: Bug Components: Inheritence and Interpolation Versions: 2.0.3 Environment: cygwin Reporter: Olivier Lamy Priority: Blocker Attachments: pom.xml create two profiles in your settings.xml - id test with a property testdev/test - id snapshots with a property testsnapshots/test activeProfiles activeProfiledev/activeProfile activeProfilesnapshots/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
[jira] Commented: (MNG-2206) bad properties interpolation with profiles
[ http://jira.codehaus.org/browse/MNG-2206?page=comments#action_63032 ] Eric Redmond commented on MNG-2206: --- Firstly, he means to create a profile with id dev, not test. Also, this defect only presents itself if you set an activation of activeByDefault to true. activeByDefault seems to hold a little too much power here. It does not honor the -P flag. If you remove activeByDefault, then snapshot will win, as expected. bad properties interpolation with profiles --- Key: MNG-2206 URL: http://jira.codehaus.org/browse/MNG-2206 Project: Maven 2 Type: Bug Components: Inheritence and Interpolation Versions: 2.0.3 Environment: cygwin Reporter: Olivier Lamy Priority: Blocker Attachments: pom.xml create two profiles in your settings.xml - id test with a property testdev/test - id snapshots with a property testsnapshots/test activeProfiles activeProfiledev/activeProfile activeProfilesnapshots/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