You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matthew Adams <ma...@matthewadams.me> on 2011/10/18 16:17:32 UTC

Maven property expression for comma-separate list of currently active profiles?

Hi all,

What Maven property expression will return me a comma-separated list of the
currently active profiles?  I've tried variations on
${project.build.profiles.active}, but I keep getting "null".

Here's how I'm trying to use it with Spring 3.1.0.RC1 bean profiles:
...
            <plugin>                
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                   
<argLine>-Dspring.profiles.active=${project.build.profiles.active}</argLine>
...

Thanks,
Matthew

--
View this message in context: http://maven.40175.n5.nabble.com/Maven-property-expression-for-comma-separate-list-of-currently-active-profiles-tp4913824p4913824.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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