Stephen,

I don't quite understand your tip.
My main problem is not compiling. I don't need different JREs to link
against, I just have to specify a different target compiler option. Just in
case I wasn't clear about that.
The problem is to tweak the artifactIds to have a suffix. The generated
artifacts should reflect the changed names as well as the deploy plugin
should respect them in the deployed poms and with regard to the deployment
target directory.

Thanks,
Holger


Stephen Connolly-2 wrote:
> 
> I want to say classifiers....
> 
> but that only works if the dependencies have not changed.
> 
> Perhaps what you want is a different project that depends on the first one
> and unpacks it's -source.jar and does a recompile with the different jdk
> 
> On 25 September 2008 12:00, Holger Brands <[EMAIL PROTECTED]> wrote:
> 
>>
>> I've a multi-module build that is compiled with target 1.6 and deployed
>> to
>> our company repo with artifactIds "artifact1", "artifact2" and so on.
>>
>> Now, what I want to achieve is the following:
>> I want the same multi-module build optionally to be compiled with target
>> 1.5
>> and deployed to our company repo with artifactIds "artifact1_java15",
>> "artifact2_java15" and so on.
>>
>> So, ideally
>> - "mvn deploy" should deploy the default build artifacts compiled with
>> target 1.6.
>> - "mvn -Djdk=1.5 deploy" should deploy the derived build artifacts
>> compiled
>> with target 1.5.
>>
>> I know how to use profiles/properties to set the desired compiler
>> options.
>> But how to tweak the artifactIds?
>>
>> Is there an easy way to accomplish this?
>> If not, what's the recommended way to deal with this requirement?
>>
>> I'm using Maven 2.0.9 on Windows XP.
>>
>> Sorry, if this has been asked before.
>>
>> Thanks,
>> Holger
>>
>> --
>> View this message in context:
>> http://www.nabble.com/deploy-multi-module-artifacts-with-derived-artifactIds-tp19667309p19667309.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/deploy-multi-module-artifacts-with-derived-artifactIds-tp19667309p19671027.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to