Passing configuration axis values to the Maven Commandline

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Passing configuration axis values to the Maven Commandline

Johannes t.
Hello Community,

just recently I created some jobs that build packages (assemblies) from our nice software here. It consists of a POM that gets different addons via a lot of profiles - each addon is a profile.
Now I wanted to create three packages,
 - one with no addons (no profiles, no problems)
 - one with a few adons (some profiles, activated via a property sent in via the config axis  as -Dci.addons=foo)
 - one with all addons (all profiles, activated via ... aww, bummer!)

Now Maven imposes the following limits on me:
 - A profile can be activated via absence of a property or via *one* specific value of the property.
 - Activating on a given set of properties is not possible
 - The idea of activating a profile that contains multiple properties that activate the other profiles, each with his own property to activate the matching profile will not work, since it would require multiple pass parsing.

Possible Solutions are:
 - Get "activate on multiple values" into maven
 - Get the Multiconfig build to be able to use the values of the config axis'ses in the Maven commandline to construct a mvn -Pthis,that,his,hers,cheesecake string with the needed profiles.

I was looking into the Maven core, but it did not yet yield any success.

Does anyone of you have any idea, what could be done about this and if the idea given last might be implemented?

Appreciation for all your answers :D

Regards,
Joti
Reply | Threaded
Open this post in threaded view
|

Fwd: Passing configuration axis values to the Maven Commandline

Johannes t.


---------- Forwarded message ----------
From: Johannes t. <[hidden email]>
Date: 2009/7/7
Subject: Passing configuration axis values to the Maven Commandline
To: [hidden email]


Hello Community,

just recently I created some jobs that build packages (assemblies) from our nice software here. It consists of a POM that gets different addons via a lot of profiles - each addon is a profile.
Now I wanted to create three packages,
 - one with no addons (no profiles, no problems)
 - one with a few adons (some profiles, activated via a property sent in via the config axis  as -Dci.addons=foo)
 - one with all addons (all profiles, activated via ... aww, bummer!)

Now Maven imposes the following limits on me:
 - A profile can be activated via absence of a property or via *one* specific value of the property.
 - Activating on a given set of properties is not possible
 - The idea of activating a profile that contains multiple properties that activate the other profiles, each with his own property to activate the matching profile will not work, since it would require multiple pass parsing.

Possible Solutions are:
 - Get "activate on multiple values" into maven
 - Get the Multiconfig build to be able to use the values of the config axis'ses in the Maven commandline to construct a mvn -Pthis,that,his,hers,cheesecake string with the needed profiles.

I was looking into the Maven core, but it did not yet yield any success.

Does anyone of you have any idea, what could be done about this and if the idea given last might be implemented?

Appreciation for all your answers :D

Regards,
Joti

Reply | Threaded
Open this post in threaded view
|

Re: Passing configuration axis values to the Maven Commandline

Andrew Bayer
Hmm. I don't think there is at the moment - could you open an issue for this?

A.

On Wed, Jul 8, 2009 at 4:23 AM, Johannes t. <[hidden email]> wrote:


---------- Forwarded message ----------
From: Johannes t. <[hidden email]>
Date: 2009/7/7
Subject: Passing configuration axis values to the Maven Commandline
To: [hidden email]


Hello Community,

just recently I created some jobs that build packages (assemblies) from our nice software here. It consists of a POM that gets different addons via a lot of profiles - each addon is a profile.
Now I wanted to create three packages,
 - one with no addons (no profiles, no problems)
 - one with a few adons (some profiles, activated via a property sent in via the config axis  as -Dci.addons=foo)
 - one with all addons (all profiles, activated via ... aww, bummer!)

Now Maven imposes the following limits on me:
 - A profile can be activated via absence of a property or via *one* specific value of the property.
 - Activating on a given set of properties is not possible
 - The idea of activating a profile that contains multiple properties that activate the other profiles, each with his own property to activate the matching profile will not work, since it would require multiple pass parsing.

Possible Solutions are:
 - Get "activate on multiple values" into maven
 - Get the Multiconfig build to be able to use the values of the config axis'ses in the Maven commandline to construct a mvn -Pthis,that,his,hers,cheesecake string with the needed profiles.

I was looking into the Maven core, but it did not yet yield any success.

Does anyone of you have any idea, what could be done about this and if the idea given last might be implemented?

Appreciation for all your answers :D

Regards,
Joti


Reply | Threaded
Open this post in threaded view
|

Re: Passing configuration axis values to the Maven Commandline

Johannes t.
https://hudson.dev.java.net/issues/show_bug.cgi?id=3995

[x] done

Cheers,
Joti

2009/7/8 Andrew Bayer <[hidden email]>
Hmm. I don't think there is at the moment - could you open an issue for this?

A.


On Wed, Jul 8, 2009 at 4:23 AM, Johannes t. <[hidden email]> wrote:


---------- Forwarded message ----------
From: Johannes t. <[hidden email]>
Date: 2009/7/7
Subject: Passing configuration axis values to the Maven Commandline
To: [hidden email]


Hello Community,

just recently I created some jobs that build packages (assemblies) from our nice software here. It consists of a POM that gets different addons via a lot of profiles - each addon is a profile.
Now I wanted to create three packages,
 - one with no addons (no profiles, no problems)
 - one with a few adons (some profiles, activated via a property sent in via the config axis  as -Dci.addons=foo)
 - one with all addons (all profiles, activated via ... aww, bummer!)

Now Maven imposes the following limits on me:
 - A profile can be activated via absence of a property or via *one* specific value of the property.
 - Activating on a given set of properties is not possible
 - The idea of activating a profile that contains multiple properties that activate the other profiles, each with his own property to activate the matching profile will not work, since it would require multiple pass parsing.

Possible Solutions are:
 - Get "activate on multiple values" into maven
 - Get the Multiconfig build to be able to use the values of the config axis'ses in the Maven commandline to construct a mvn -Pthis,that,his,hers,cheesecake string with the needed profiles.

I was looking into the Maven core, but it did not yet yield any success.

Does anyone of you have any idea, what could be done about this and if the idea given last might be implemented?

Appreciation for all your answers :D

Regards,
Joti