[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [m2e-users] How to specify goals and properties | 
Profiles activated in m2e are stored under .settings/org.eclipse.m2e.core.prefs so you might want to add that file to your SCM.
Shameless plug : profile management can be simplified in Eclipse using the Maven Profiles Management feature [1] from JBoss Tools [2]. Useful if you need to apply the same profile to multiple projects for instance. 
Regards,
Fred Bricon
On Mon, Jul 9, 2012 at 2:49 PM, 
l.penet@xxxxxxxx <l.penet@xxxxxxxx> wrote:
On 06/07/2012 13:26, Igor Fedorenko wrote:
pom-profile is likely the easiest way to configure m2e specific
properties and goal. Something like
    <profile>
      <id>m2e-workspace</id>
      <activation>
        <property>
          <name>m2e.version</name>
        </property>
      </activation>
      <properties>
        ...
      </properties>
      <build>
        <plugins>
          ...
    </profile>
It does not really help me as I specify those properties also to activate profiles, and as property definition in a profile does not activate another profile (in maven 2 ; only if the profile is in settings.xml in maven3).
It will not be optimal for me, but is there a way to configure the "Active Maven Profiles" of m2e directly in the pom ? The profiles I would like to activate when using m2e are already conditionnally activated otherwise, and I do not think that I can specify multiple activaction rules using maven2.
Best regards,
-- 
"Have you tried turning it off and on again" - The IT Crowd