Hi Rémy

just realised I hadn't replied. Very impolite, sorry. Are you still having an issue with this? What did you want me to try? It sounds you like what you are saying is that your profiles become active by default just by virtue of their existence in profiles.xml.



Adam

Rémy Sanlaville on 23/10/06 11:03, wrote:
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)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to