Re: Is it possible to activate a profile from settings.xml?

2007-12-29 Thread Steinar Bang
> "Tomasz Pik" <[EMAIL PROTECTED]>:
> yes, add something like this:

> 
>idOfProfile
>idOfOtherProfile
> 

> listing profiles that needs to be activated at the end of settings.xml
> file (before ).

So simple!  Thanx! :-)

I noted something strange on maven 2.0.4: I also needed a 
element in the settings.xml, containing a default profile (an empty
one), for the  setting to "take".

Is that a known bug?  Or is it expected behaviour?  Is it changed/fixed
in later maven versions?

Thanx again!


- Steinar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to activate a profile from settings.xml?

2007-12-27 Thread Tomasz Pik
On Dec 27, 2007 5:51 PM, Steinar Bang <[EMAIL PROTECTED]> wrote:
> Is it possible to activate a profile in the top POM from settings.xml?
>
> What I want to do is to have a set of properties describing OS name, and
> architecture of shared libraries (ie. redhat4 and x86, or win32 and
> x86_64) for different build systems, and to have a single switch in
> settings.xml, to set the right set of values for a configuration.
>
> Is this possible to do?

yes, add something like this:


   idOfProfile
   idOfOtherProfile


listing profiles that needs to be activated at the end of settings.xml
file (before ).

Regards,
Tomejk

>
> Thanx!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is it possible to activate a profile from settings.xml?

2007-12-27 Thread Steinar Bang
Is it possible to activate a profile in the top POM from settings.xml?

What I want to do is to have a set of properties describing OS name, and
architecture of shared libraries (ie. redhat4 and x86, or win32 and
x86_64) for different build systems, and to have a single switch in
settings.xml, to set the right set of values for a configuration.

Is this possible to do?

Thanx!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]