You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paul Gier <pg...@redhat.com> on 2007/05/04 16:37:36 UTC

One profile activate another

I would like to have two profiles.  One profile can be called by 
itself.  The second one should activate the first one so that the 
configuration of the first is included.
Is this possible?

Thanks!

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


Re: One profile activate another

Posted by Roland Asmann <Ro...@cfc.at>.
This is not possible, however a workaround exists!
You can set the first profile to be activated when a certain property is set, 
and the second one when it is set to a specific value. That way, if the value 
is 'correct', both profiles will be activated.


On Friday 04 May 2007 16:37, Paul Gier wrote:
> I would like to have two profiles.  One profile can be called by
> itself.  The second one should activate the first one so that the
> configuration of the first is included.
> Is this possible?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: Roland.Asmann@cfc.at
Web: www.cfc.at

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


Re: One profile activate another

Posted by Wayne Fay <wa...@gmail.com>.
Not that I'm aware of. But what's stopping you from simply specifying
2 profiles in the command line ie:
mvn -P abc, xyz package

See more information here:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Wayne

On 5/4/07, Paul Gier <pg...@redhat.com> wrote:
> I would like to have two profiles.  One profile can be called by
> itself.  The second one should activate the first one so that the
> configuration of the first is included.
> Is this possible?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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