Michel Allenou wrote:
Hi,
this is really a user question and should be asked on the user list.
However I'll give you a short answer here:
profiles cannot be linked. The order in which they're activated is
random, and we would need
to loop all profiles until no extra profiles are activated. This is
possible, but there's a more
elegant solution: you can specify <properties> in the pom. If you
specify the <prof1>true</prof1>
there, and let both profiles trigger on that property, then you're set.
Looks like you always activate those 2 profiles at the same time, so
they should
really be one profile.
I'm not sure I can think of a good usecase where you have dependent
profiles like this. If you have one, be sure to file a JIRA issue about
this.
-- Kenney
Hi,
I'd like to link different profiles by using "activation on properties" and
defining an "activeProfiles". Something like:
<profile>
<id>prof1</id>
<properties>
<prof1>true</prof1> ... should activate prof2 !
</properties>
</profile>
<profile>
<id>prof2</id>
</properties>
<activation>
<property>
<name>prof1</name>
</property>
</activation>
</profile>
<activeProfiles>
<activeProfile>prof1</activeProfile>
</activeProfiles>
By activating the "prof1" I expect to have the "prof1" property set and then
to activate the prof2 automatically. Unfortunately it does not work !?
Does someone face same needs and issues ?
I know that entering "mvn -Dprof1=true" dos the work but what is the point
of having an "active profile" if we need to enter system properties to have
it running ?
Thanks a lot for your help !
Michel Allenou
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]