You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by kopemor <de...@knollenstein.nl> on 2009/08/11 10:25:01 UTC
How to omit generated jar version number?
I am generating a JAR artifact and in my pom.xml I should specify a version
of that JAR in a version tag. However, I want Maven to generate a JAR file
without the version number, i.e.FooComponent.jar.
If I remove a version tag, maven reports me of an error.
Is there a way to achieve what I want?
Thanks,
--
View this message in context: http://www.nabble.com/How-to-omit-generated-jar-version-number--tp24913645p24913645.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to omit generated jar version number?
Posted by kopemor <de...@knollenstein.nl>.
Thank you Ketil. It helped!
Ketil Aasarød wrote:
>
> In your pom.xml, add the following in the build-section:
>
> <finalName>${artifactId}</finalName>
>
> The default value for finalName is ${artifactId}-${version}.
>
> -ketil
>
> On Tue, Aug 11, 2009 at 10:25 AM, kopemor<de...@knollenstein.nl>
> wrote:
>>
>> I am generating a JAR artifact and in my pom.xml I should specify a
>> version
>> of that JAR in a version tag. However, I want Maven to generate a JAR
>> file
>> without the version number, i.e.FooComponent.jar.
>>
>> If I remove a version tag, maven reports me of an error.
>>
>> Is there a way to achieve what I want?
>>
>> Thanks,
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-omit-generated-jar-version-number--tp24913645p24913645.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
--
View this message in context: http://www.nabble.com/How-to-omit-generated-jar-version-number--tp24913645p24914718.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to omit generated jar version number?
Posted by Ketil Aasarød <ke...@gmail.com>.
In your pom.xml, add the following in the build-section:
<finalName>${artifactId}</finalName>
The default value for finalName is ${artifactId}-${version}.
-ketil
On Tue, Aug 11, 2009 at 10:25 AM, kopemor<de...@knollenstein.nl> wrote:
>
> I am generating a JAR artifact and in my pom.xml I should specify a version
> of that JAR in a version tag. However, I want Maven to generate a JAR file
> without the version number, i.e.FooComponent.jar.
>
> If I remove a version tag, maven reports me of an error.
>
> Is there a way to achieve what I want?
>
> Thanks,
> --
> View this message in context: http://www.nabble.com/How-to-omit-generated-jar-version-number--tp24913645p24913645.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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