You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Fragoso, Ruben" <Ru...@ca.com> on 2014/07/08 10:21:41 UTC
Adding Classifiers when building
Hello Everyone
I would like to know if it is possible to add classifiers while building as a maven parameter, for example if I want to add the classifier "dev" to an artifact, when building.
Thank you in Advance, hope to hear from you.
Best Regards
Ruben Fragoso
RE: Adding Classifiers when building
Posted by "Fragoso, Ruben" <Ru...@ca.com>.
Thank you Jason,
Yes, this was feeling counter-intuitive, that is why I asking this. Thank you All
Regards
Ruben Fragoso
-----Original Message-----
From: Jason van Zyl [mailto:jason@takari.io]
Sent: Tuesday, July 08, 2014 2:48 PM
To: Maven Users List
Subject: Re: Adding Classifiers when building
This is a bad practice and runs counter to continuous delivery which is commonly accepted as a good thing.
You always want to build in such a way that anything being built can be used as a release without any further transformation.
On Jul 8, 2014, at 4:21 AM, Fragoso, Ruben <Ru...@ca.com> wrote:
> Hello Everyone
>
> I would like to know if it is possible to add classifiers while building as a maven parameter, for example if I want to add the classifier "dev" to an artifact, when building.
>
> Thank you in Advance, hope to hear from you.
>
> Best Regards
> Ruben Fragoso
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
---------------------------------------------------------
I never make the mistake of arguing with people for whose opinions I have no respect.
-- Edward Gibbon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Adding Classifiers when building
Posted by Jason van Zyl <ja...@takari.io>.
This is a bad practice and runs counter to continuous delivery which is commonly accepted as a good thing.
You always want to build in such a way that anything being built can be used as a release without any further transformation.
On Jul 8, 2014, at 4:21 AM, Fragoso, Ruben <Ru...@ca.com> wrote:
> Hello Everyone
>
> I would like to know if it is possible to add classifiers while building as a maven parameter, for example if I want to add the classifier "dev" to an artifact, when building.
>
> Thank you in Advance, hope to hear from you.
>
> Best Regards
> Ruben Fragoso
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
---------------------------------------------------------
I never make the mistake of arguing with people for whose opinions I have no respect.
-- Edward Gibbon
Re: Adding Classifiers when building
Posted by Stephen Connolly <st...@gmail.com>.
though it is usually better to stick to the well known qualifiers: alpha,
beta, rc, milestone, etc
On 8 July 2014 09:35, Stephen Connolly <st...@gmail.com>
wrote:
> Classifiers are not for what you think they are for... they are for
> flagging side artifacts... and in general they should not be used. A good
> example of a case for side artifacts is the javadocs.jar. You normally do
> not depend on the javadocs jar, it is a side artifact for IDEs.
>
> If you want to flag that a specific build is, e.g. for development use,
> then just reflect that in the version, i.e. 1.0-dev-1-SNAPSHOT
>
>
> On 8 July 2014 09:21, Fragoso, Ruben <Ru...@ca.com> wrote:
>
>> Hello Everyone
>>
>> I would like to know if it is possible to add classifiers while building
>> as a maven parameter, for example if I want to add the classifier "dev" to
>> an artifact, when building.
>>
>> Thank you in Advance, hope to hear from you.
>>
>> Best Regards
>> Ruben Fragoso
>>
>>
>
Re: Adding Classifiers when building
Posted by Stephen Connolly <st...@gmail.com>.
Classifiers are not for what you think they are for... they are for
flagging side artifacts... and in general they should not be used. A good
example of a case for side artifacts is the javadocs.jar. You normally do
not depend on the javadocs jar, it is a side artifact for IDEs.
If you want to flag that a specific build is, e.g. for development use,
then just reflect that in the version, i.e. 1.0-dev-1-SNAPSHOT
On 8 July 2014 09:21, Fragoso, Ruben <Ru...@ca.com> wrote:
> Hello Everyone
>
> I would like to know if it is possible to add classifiers while building
> as a maven parameter, for example if I want to add the classifier "dev" to
> an artifact, when building.
>
> Thank you in Advance, hope to hear from you.
>
> Best Regards
> Ruben Fragoso
>
>