Hi Adam,

mvn help:effective-settings

will help you determine the problem. Your dev profile would have to be
activated by something


Nothing in my settings is configure to activate the dev profile.

- try renaming it.


I already try it :

--- profiles.xml
<profilesXml>
   <profiles>
       <profile>
           <id>common</id>
           <properties>
               <profile.common.message>common
property</profile.common.message>
           </properties>
       </profile>
       <profile>
           <id>foo</id>
           <properties>
               <profile.foo.message>foo
property</profile.foo.message>
           </properties>
       </profile>
   </profiles>

   <activeProfiles>
       <activeProfile>common</activeProfile>
   </activeProfiles>
</profilesXml>
--- profiles.xml

mvn help:active-profiles

   The following profiles are active:

    - foo (source: profiles.xml)
    - common (source: profiles.xml)

Could you please try it to see if you have the same behaviour ?

It's interesting to notice that with this profiles.xml, it works well.
But normally, I do not have to add the activation section. Also,
if you put the profiles section in the pom.xml instead of profiles.xml
it works well too (without addind the the activation section).

<profilesXml>
   <profiles>
       <profile>
           <id>common</id>
           <properties>
               <profile.common.message>common
property</profile.common.message>
           </properties>
       </profile>
       <profile>
           <id>dev</id>
           <properties>
               <profile.dev.message>dev
property</profile.dev.message>
           </properties>
           <activation>
               <property>
                 <name>env</name>
                 <value>dev</value>
               </property>
           </activation>
       </profile>
   </profiles>

   <activeProfiles>
       <activeProfile>common</activeProfile>
   </activeProfiles>
</profilesXml>

mvn help:active-profiles

    The following profiles are active:

    - common (source: profiles.xml)

Thanks,

Rémy

Reply via email to