Greetings, In my settings.xml file I have the following:
<profile> <id>env-dev</id> <activation> ................. </activation> ................. </profile> In my POM, I have: <project> ............. <profile> <id>env-prod</id> <build> ............... </build> </profile> ................. </project> The POM code between <build> and </build> didn't get called and I didn't understand why. However, running "mvn help:active-profiles" showed me that the appropriated profiles was selected. In order to get it working, I needed to add to the pom the <activate>...</activate> section, already present in settings.xml. Now my POM looks like this: <project> ............. <profile> <id>env-prod</id> <activate> ................ </activate> <build> ............... </build> </profile> ................. </project> Which is a shame as the activate section apears twice: once in settings and once in the POM. I don't know if that's by design, but it doesn't make much sense to me, since maven is anyway very un-modular. I'd be interested to know if I'm wrong or if this is the normal case and, in this eventuality, why ? Many thanks in advance, Nicolas -- View this message in context: http://www.nabble.com/Redundant-profile-activation-definition-in-settings.xml-and-pom-tp17863825p17863825.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]