You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ne...@indiatimes.com on 2008/10/29 08:01:33 UTC
jar in a war with a different name
Hi All,
We previously were building the applications using the IDE and then using ant. So this particular jar was a dependency for one of the war and is embedded within it.
Currenlty as part of maven migration,i have installed the same to the repository as x-1.0.jar.
Now as part of the war build,i want to embed it to the war as x.jar and not as x-1.0.jar
I tried many ways but it always is getting embedded as x-1.0.jar
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${basedir}/src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
</archive>
<modules>
<jarModule>
<groupId>x</groupId>
<artifactId>x</artifactId>
<bundleFileName>x.jar</bundleFileName>
</jarModule>
</modules>
</configuration>
</plugin>
</plugins>
Thanks in advance
Regards
--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jar in a war with a different name
Posted by ne...@indiatimes.com.
I tried with
<jarModule>
<groupId>x</groupId>
<artifactId>x</artifactId>
<bundleFileName>x.jar</bundleFileName>
</jarModule>
<jarModule>
<groupId>x</groupId>
<artifactId>x</artifactId>
<configuration>
<finalName>x.jar</finalName>
</configuration>
</jarModule>
<jarModule>
<groupId>x</groupId>
<artifactId>x</artifactId>
<outputFileNameMapping>
x.jar<
</outputFileNameMapping>
</jarModule>
----- Original Message -----
From: Dan Tran <da...@gmail.com>
To: Maven Users List <us...@maven.apache.org>
Sent: Sat, 1 Nov 2008 02:31:00 +0530 (IST)
Subject: Re: jar in a war with a different name
what did you do that is "not work out"?
-D
On Fri, Oct 31, 2008 at 1:18 PM, <ne...@indiatimes.com> wrote:
> Any solutions??????
> ----- Original Message -----
> From: neptune pluto <ne...@indiatimes.com>
> To: Maven Users List <us...@maven.apache.org>
> Cc: mgainty@hotmail.com
> Sent: Fri, 31 Oct 2008 12:18:40 +0530 (IST)
> Subject: RE: jar in a war with a different name
>
> unfortunately didnt work out.. :)
>
>
> i tried with outputFilenamemapping also but :(
>
> ----- Original Message -----
> From: Martin Gainty <mg...@hotmail.com>
> To: Maven Users List <us...@maven.apache.org>
> Sent: Thu, 30 Oct 2008 03:08:32 +0530 (IST)
> Subject: RE: jar in a war with a different name
>
>
> place your <version>1.0</version> adjacent to <artifactid>
>
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
>
>
>> Date: Wed, 29 Oct 2008 12:31:33 +0530
>> From: neptune_pluto@indiatimes.com
>> To: users@maven.apache.org
>> Subject: jar in a war with a different name
>>
>> Hi All,
>>
>> We previously were building the applications using the IDE and then using ant. So this particular jar was a dependency for one of the war and is embedded within it.
>>
>> Currenlty as part of maven migration,i have installed the same to the repository as x-1.0.jar.
>>
>> Now as part of the war build,i want to embed it to the war as x.jar and not as x-1.0.jar
>>
>> I tried many ways but it always is getting embedded as x-1.0.jar
>>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-war-plugin</artifactId>
>> <configuration>
>> <archive>
>> <manifestFile>${basedir}/src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
>> </archive>
>> <modules>
>> <jarModule>
>> <groupId>x</groupId>
>> <artifactId>x</artifactId>
>> <bundleFileName>x.jar</bundleFileName>
>> </jarModule>
>> </modules>
>> </configuration>
>> </plugin>
>> </plugins>
>>
>>
>> Thanks in advance
>>
>> Regards
>>
>>
>> --
>> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
>> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> _________________________________________________________________
> Store, manage and share up to 5GB with Windows Live SkyDrive.
> http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008
>
>
> --
> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> --
> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>
> ---------------------------------------------------------------------
> 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
--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jar in a war with a different name
Posted by Dan Tran <da...@gmail.com>.
what did you do that is "not work out"?
-D
On Fri, Oct 31, 2008 at 1:18 PM, <ne...@indiatimes.com> wrote:
> Any solutions??????
> ----- Original Message -----
> From: neptune pluto <ne...@indiatimes.com>
> To: Maven Users List <us...@maven.apache.org>
> Cc: mgainty@hotmail.com
> Sent: Fri, 31 Oct 2008 12:18:40 +0530 (IST)
> Subject: RE: jar in a war with a different name
>
> unfortunately didnt work out.. :)
>
>
> i tried with outputFilenamemapping also but :(
>
> ----- Original Message -----
> From: Martin Gainty <mg...@hotmail.com>
> To: Maven Users List <us...@maven.apache.org>
> Sent: Thu, 30 Oct 2008 03:08:32 +0530 (IST)
> Subject: RE: jar in a war with a different name
>
>
> place your <version>1.0</version> adjacent to <artifactid>
>
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
>
>
>> Date: Wed, 29 Oct 2008 12:31:33 +0530
>> From: neptune_pluto@indiatimes.com
>> To: users@maven.apache.org
>> Subject: jar in a war with a different name
>>
>> Hi All,
>>
>> We previously were building the applications using the IDE and then using ant. So this particular jar was a dependency for one of the war and is embedded within it.
>>
>> Currenlty as part of maven migration,i have installed the same to the repository as x-1.0.jar.
>>
>> Now as part of the war build,i want to embed it to the war as x.jar and not as x-1.0.jar
>>
>> I tried many ways but it always is getting embedded as x-1.0.jar
>>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-war-plugin</artifactId>
>> <configuration>
>> <archive>
>> <manifestFile>${basedir}/src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
>> </archive>
>> <modules>
>> <jarModule>
>> <groupId>x</groupId>
>> <artifactId>x</artifactId>
>> <bundleFileName>x.jar</bundleFileName>
>> </jarModule>
>> </modules>
>> </configuration>
>> </plugin>
>> </plugins>
>>
>>
>> Thanks in advance
>>
>> Regards
>>
>>
>> --
>> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
>> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> _________________________________________________________________
> Store, manage and share up to 5GB with Windows Live SkyDrive.
> http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008
>
>
> --
> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> --
> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>
> ---------------------------------------------------------------------
> 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
RE: jar in a war with a different name
Posted by ne...@indiatimes.com.
Any solutions??????
----- Original Message -----
From: neptune pluto <ne...@indiatimes.com>
To: Maven Users List <us...@maven.apache.org>
Cc: mgainty@hotmail.com
Sent: Fri, 31 Oct 2008 12:18:40 +0530 (IST)
Subject: RE: jar in a war with a different name
unfortunately didnt work out.. :)
i tried with outputFilenamemapping also but :(
----- Original Message -----
From: Martin Gainty <mg...@hotmail.com>
To: Maven Users List <us...@maven.apache.org>
Sent: Thu, 30 Oct 2008 03:08:32 +0530 (IST)
Subject: RE: jar in a war with a different name
place your <version>1.0</version> adjacent to <artifactid>
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> Date: Wed, 29 Oct 2008 12:31:33 +0530
> From: neptune_pluto@indiatimes.com
> To: users@maven.apache.org
> Subject: jar in a war with a different name
>
> Hi All,
>
> We previously were building the applications using the IDE and then using ant. So this particular jar was a dependency for one of the war and is embedded within it.
>
> Currenlty as part of maven migration,i have installed the same to the repository as x-1.0.jar.
>
> Now as part of the war build,i want to embed it to the war as x.jar and not as x-1.0.jar
>
> I tried many ways but it always is getting embedded as x-1.0.jar
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <archive>
> <manifestFile>${basedir}/src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> <modules>
> <jarModule>
> <groupId>x</groupId>
> <artifactId>x</artifactId>
> <bundleFileName>x.jar</bundleFileName>
> </jarModule>
> </modules>
> </configuration>
> </plugin>
> </plugins>
>
>
> Thanks in advance
>
> Regards
>
>
> --
> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
_________________________________________________________________
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008
--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: jar in a war with a different name
Posted by ne...@indiatimes.com.
unfortunately didnt work out.. :)
i tried with outputFilenamemapping also but :(
----- Original Message -----
From: Martin Gainty <mg...@hotmail.com>
To: Maven Users List <us...@maven.apache.org>
Sent: Thu, 30 Oct 2008 03:08:32 +0530 (IST)
Subject: RE: jar in a war with a different name
place your <version>1.0</version> adjacent to <artifactid>
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> Date: Wed, 29 Oct 2008 12:31:33 +0530
> From: neptune_pluto@indiatimes.com
> To: users@maven.apache.org
> Subject: jar in a war with a different name
>
> Hi All,
>
> We previously were building the applications using the IDE and then using ant. So this particular jar was a dependency for one of the war and is embedded within it.
>
> Currenlty as part of maven migration,i have installed the same to the repository as x-1.0.jar.
>
> Now as part of the war build,i want to embed it to the war as x.jar and not as x-1.0.jar
>
> I tried many ways but it always is getting embedded as x-1.0.jar
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <archive>
> <manifestFile>${basedir}/src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> <modules>
> <jarModule>
> <groupId>x</groupId>
> <artifactId>x</artifactId>
> <bundleFileName>x.jar</bundleFileName>
> </jarModule>
> </modules>
> </configuration>
> </plugin>
> </plugins>
>
>
> Thanks in advance
>
> Regards
>
>
> --
> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
_________________________________________________________________
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008
--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: jar in a war with a different name
Posted by Martin Gainty <mg...@hotmail.com>.
place your <version>1.0</version> adjacent to <artifactid>
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> Date: Wed, 29 Oct 2008 12:31:33 +0530
> From: neptune_pluto@indiatimes.com
> To: users@maven.apache.org
> Subject: jar in a war with a different name
>
> Hi All,
>
> We previously were building the applications using the IDE and then using ant. So this particular jar was a dependency for one of the war and is embedded within it.
>
> Currenlty as part of maven migration,i have installed the same to the repository as x-1.0.jar.
>
> Now as part of the war build,i want to embed it to the war as x.jar and not as x-1.0.jar
>
> I tried many ways but it always is getting embedded as x-1.0.jar
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <archive>
> <manifestFile>${basedir}/src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> <modules>
> <jarModule>
> <groupId>x</groupId>
> <artifactId>x</artifactId>
> <bundleFileName>x.jar</bundleFileName>
> </jarModule>
> </modules>
> </configuration>
> </plugin>
> </plugins>
>
>
> Thanks in advance
>
> Regards
>
>
> --
> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
_________________________________________________________________
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008
Re: jar in a war with a different name
Posted by Dan Tran <da...@gmail.com>.
see if this, http://maven.apache.org/plugins/maven-war-plugin/examples/file-name-mapping.html,
would help
-D
On Wed, Oct 29, 2008 at 12:01 AM, <ne...@indiatimes.com> wrote:
> Hi All,
>
> We previously were building the applications using the IDE and then using ant. So this particular jar was a dependency for one of the war and is embedded within it.
>
> Currenlty as part of maven migration,i have installed the same to the repository as x-1.0.jar.
>
> Now as part of the war build,i want to embed it to the war as x.jar and not as x-1.0.jar
>
> I tried many ways but it always is getting embedded as x-1.0.jar
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <archive>
> <manifestFile>${basedir}/src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> <modules>
> <jarModule>
> <groupId>x</groupId>
> <artifactId>x</artifactId>
> <bundleFileName>x.jar</bundleFileName>
> </jarModule>
> </modules>
> </configuration>
> </plugin>
> </plugins>
>
>
> Thanks in advance
>
> Regards
>
>
> --
> Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
> http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731&path=/INDT/News/Emb11_20080731&page=1&pagecount=2&utm_source=indmail&utm_medium=footer&utm_content=tracking&utm_campaign=Nletter_07oct2008_ZW
>
> ---------------------------------------------------------------------
> 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