Re: Activation of multiple profiles at the same time

2010-08-28 Thread carolyny476

Such a very amazing link! 
Thanks you for the post.

__
[url=http://moviesonlineworld.com]watch free movies online[/url]
-- 
View this message in context: 
http://maven-users.828.n2.nabble.com/Activation-of-multiple-profiles-at-the-same-time-tp2496510p5471839.html
Sent from the maven users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Activation of multiple profiles at the same time

2009-03-18 Thread Rusty Wright

I can get default and jdk to activate together, but not the os with them; given 
the following profiles.xml:



http://maven.apache.org/xsd/profiles-1.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/xsd/profiles-1.0.0.xsd";>

   
   
   jdk1.5

   
   false

   1.5
   
   

   
   unix

   
   false

   
   unix
   
   
   

   
   default

   
   true
   
   etc.

I get the following output:

$ mvn enforcer:display-info help:active-profiles
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'enforcer'.
[INFO] 
[INFO] Building People Locator
[INFO]task-segment: [enforcer:display-info]
[INFO] 
[INFO] [enforcer:display-info]
[INFO] Maven Version: 2.0.10
[INFO] JDK Version: 1.5.0_17 normalized as: 1.5.0-17
[INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.24-21-server
[INFO] 
[INFO] Building People Locator
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO] 
[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'edu.berkeley:people_locator:war:1.1-SNAPSHOT':

The following profiles are active:

- jdk1.5 (source: profiles.xml)
- default (source: profiles.xml)

No matter what I use between the os tags it never activates (arch, family, 
name).


COURCY Michael wrote:
 
It seems to me that activation of profiles is exclusive, i.e., only one profile is activated at a time.


No you can cumulate profiles 




id1
true


id2
true

  

Mvn help:active-profiles

The following profiles are active:
 - id1 (source: pom)
 - id2 (source: pom)
 - dev (source: settings.xml)
 - delphi (source: settings.xml)
 - delphi (source: settings.xml)




-Message d'origine-
De : TM [mailto:thorsten.moel...@unibas.ch] 
Envoyé : mercredi 18 mars 2009 12:08

À : users@maven.apache.org
Objet : Activation of multiple profiles at the same time


Hello,

I'm facing some behavior regarding activation of multiple profiles within a 
pom.xml, which is contrary to what I was expecting. Maybe someone can help.

I have a pom consisting of three profiles:



default

true


${java.home}/../lib/tools.jar



tools-jar-mac

false

Mac



${java.home}/../Classes/classes.jar




jdk1.5

false
1.5



org.codehaus.woodstox
woodstox-core-asl
4.0.3





What I want to achieve is that for platforms other than Mac OS _and_  Java version 1.5.* the profiles 
"default" _and_ "jdk1.5" will be activated. For platforms other than Mac OS _and_ Java 1.6 only the 
profile "default" should be activated. Finally, for the Mac OS platform the profile "tools-jar-mac"
_and_ "jdk1.5" should be activated for Java 1.5; while only profile 
"tools-jar-mac" should be activated for Java 1.6.

It seems to me that activation of profiles is exclusive, i.e., only one profile is activated at a 
time. For instance, when using mvn help:active-profiles on a Linux machine with Java 1.5 SDK, I see 
only profile "jdk1.5" activated, but what I was expecting is that "default" 
would be activated as well. Is there any way to achieve automatic activation of multiple profiles 
apart from explicitly stating profiles via -P on the command line.

-- Thorsten
--
View this message in context: 
http://www.nabble.com/Activation-of-multiple-profiles-at-the-same-time-tp22576838p22576838.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-

RE: Activation of multiple profiles at the same time

2009-03-18 Thread COURCY Michael
 
It seems to me that activation of profiles is exclusive, i.e., only one profile 
is activated at a time.

No you can cumulate profiles 

  

id1
true


id2
true

  

Mvn help:active-profiles

The following profiles are active:
 - id1 (source: pom)
 - id2 (source: pom)
 - dev (source: settings.xml)
 - delphi (source: settings.xml)
 - delphi (source: settings.xml)




-Message d'origine-
De : TM [mailto:thorsten.moel...@unibas.ch] 
Envoyé : mercredi 18 mars 2009 12:08
À : users@maven.apache.org
Objet : Activation of multiple profiles at the same time


Hello,

I'm facing some behavior regarding activation of multiple profiles within a 
pom.xml, which is contrary to what I was expecting. Maybe someone can help.

I have a pom consisting of three profiles:



default

true


${java.home}/../lib/tools.jar



tools-jar-mac

false

Mac



${java.home}/../Classes/classes.jar




jdk1.5

false
1.5



org.codehaus.woodstox
woodstox-core-asl
4.0.3





What I want to achieve is that for platforms other than Mac OS _and_  Java 
version 1.5.* the profiles "default" _and_ "jdk1.5" will be activated. For 
platforms other than Mac OS _and_ Java 1.6 only the profile "default" should be 
activated. Finally, for the Mac OS platform the profile "tools-jar-mac"
_and_ "jdk1.5" should be activated for Java 1.5; while only profile 
"tools-jar-mac" should be activated for Java 1.6.

It seems to me that activation of profiles is exclusive, i.e., only one profile 
is activated at a time. For instance, when using mvn help:active-profiles on a 
Linux machine with Java 1.5 SDK, I see only profile "jdk1.5" activated, but 
what I was expecting is that "default" would be activated as well. Is there any 
way to achieve automatic activation of multiple profiles apart from explicitly 
stating profiles via -P on the command line.

-- Thorsten
--
View this message in context: 
http://www.nabble.com/Activation-of-multiple-profiles-at-the-same-time-tp22576838p22576838.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org