Yes : 

mvn -P profile1[,profilen]*

But you can also set profile automatically from your maven settings files.

Gilles

> -----Original Message-----
> From: Steve Loughran [mailto:[EMAIL PROTECTED]
> Sent: lundi 19 novembre 2007 15:09
> To: [email protected]
> Subject: retrieving 'profiled' m2 artifacts
> 
> 
> There's now a POM file for TestNG 5.7 up on the repository
> http://repo1.maven.org/maven2/org/testng/testng/5.7/testng-5.7.pom
> 
> however, it is 'profiled'; different artifacts and dependencies for
> java1.5 and java1.4.
> 
> I don't think trying to chase all of M2's logic about profile selection
> and the like is worthwhile, but Ivy does need some way of requesting a
> specific profile. I didnt see anything in the online documentation -is
> there a profile attribute that I've missed?
> 
> -steve
> 
> --
> Steve Loughran                  http://www.1060.org/blogxter/publish/5
> Author: Ant in Action           http://antbook.org/

Reply via email to