Von: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] Im Auftrag von Hauschel Fred Robert
Gesendet: Freitag, 17. Dezember 2010 10:59
An: Maven Integration for Eclipse users mailing list
Betreff: [m2e-users] Maven and environment Properties - Feature or bug ??
 
In windows:
set test=dev and using  ${env.test} in the pom for example in <name> myArtifact _${env.test}</name>
Results in: Building myArtifact_${env.test} 00.01-SNAPSHOT
 
set TEST=dev and using  ${env.TEST} in the pom for example in <name> myArtifact _${env.TEST}</name>
Results in: Building myArtifact_dev 00.01-SNAPSHOT
 
How cool is that?
For me that was a very expensive Feature!
Or did I have problems understanding the environment variables? Is there a case sensitivity in general ??
 
Fredy
 
Von: Hauschel Fred Robert 
Gesendet: Freitag, 17. Dezember 2010 09:38
An: m2e-users@xxxxxxxxxxx
Betreff: AW: [m2e-users] Active Maven Profiles by system property
 
Hi all!
I’ve found the settings file:
…\.settings\org.maven.ide.eclipse.prefs:
 
#Fri Dec 17 09:30:38 CET 2010
activeProfiles=dev_resources, dev_dependencies
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
includeModules=false
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
skipCompilerPlugin=true
version=1
 
Normaly we don’t checkIn the settings, do you have any experience with checkingIn this ? 
 
Fredy
 
 
 
Von: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] Im Auftrag von Hauschel Fred Robert
Gesendet: Freitag, 17. Dezember 2010 09:28
An: m2e-users@xxxxxxxxxxx
Betreff: [m2e-users] Active Maven Profiles by system property
 
Hi all!
Where is the setting “project -> properties -> maven -> Active Maven Profiles” saved ?
Is there any possibility to share this setting?
 
The goal:
I’ve a few profiles, and I want to activate the profiles by system property (enviroment=eclipse).
M2Eclipse seems to “ignore” the existence of the system property ?!?! Or where can I place my –Denviroment=eclipse ?? That m2Eclipse recognize it?
But the profile activation works fine with “Active Maven Profiles” in the m2Eclipse settings. Now I won’t tell each developer to activate this in all his
Eclipse projects!
 
 
Thanks Fredy