You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Valerio Schiavoni <va...@gmail.com> on 2006/10/31 11:16:10 UTC

final name named after active profile id ?

hello everyone,
given the element
<finalName>myapp-${...}</finalName>

and given that i have few profiles which I activate through command-line
system properties, is it possible to use the id of the active profile as
part of the final name ?
if for exampel i have:

mvn -Ddbms=postgres package   ----->  myapp-postgres.war

i tried with ${profile.id} but i get null values..

or maybe there's a mean to use the maven-help-plugin..but i've no idea on
how to do that.

thanks,
valerio
-- 
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

Re: final name named after active profile id ?

Posted by Valerio Schiavoni <va...@gmail.com>.
i ended up using the solution proposed here:
http://mail-archives.apache.org/mod_mbox/maven-users/200511.mbox/%3Cc184d750511070205i14eb8962v@mail.gmail.com%3E

where every profile defines a finalName property.

if there're are better (whatever it means) approaches, please comment !

thanks,
valerio

On 10/31/06, Valerio Schiavoni <va...@gmail.com> wrote:
>
> hello everyone,
> given the element
> <finalName>myapp-${...}</finalName>
>
> and given that i have few profiles which I activate through command-line
> system properties, is it possible to use the id of the active profile as
> part of the final name ?
> if for exampel i have:
>
> mvn -Ddbms=postgres package   ----->  myapp-postgres.war
>
> i tried with ${profile.id} but i get null values..
>
> or maybe there's a mean to use the maven-help-plugin..but i've no idea on
> how to do that.
>
> thanks,
> valerio
> --
> http://valerioschiavoni.blogspot.com
> http://jroller.com/page/vschiavoni




-- 
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni