You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Krishnan A S <kr...@aztecsoft.com> on 2006/03/06 09:14:24 UTC

RE: m202 How to package ear with our version numbers for the included artifiacts

Add a <build>
	<finalName>jarName</finalName>
	</build>

in the pom.xml for the JAR project. Same can be applied for the WAR
also. You can observe the result in the target - directory of each
module.

Thanks & Regards,
A.S.KRISHNAN,
AZTEC, BANGALORE.

-----Original Message-----
From: Gautham Pamu [mailto:gautham.pamu@gmail.com]
Sent: Monday, March 06, 2006 1:17 PM
To: Maven Users List
Subject: m202 How to package ear with our version numbers for the
included artifiacts

Hi Everyone,

Currently when I package my ear, it is include the ejb jars and wars
files
in the ear but the jars names include the version number. I would
have package the jars in the ear without the version numbers.

For example:

   in my ear..  i have following dependency so it is packaging the
compAWeb-1.0.war in the ear, I want to have compAEJBClient.jar in the
ear
instead.
   Is it possible to change names of the jars while packaging the ear
using
ear pluging or do I have to package the jar using a custom anttask

       <dependency>
            <groupId>companyName</groupId>
            <artifactId>compAWeb</artifactId>
            <version>1.0</version>
            <type>war</type>
        </dependency>


I tried changing the finalName for the war project to artifactname so it
packaged two war files in the ear file. One with version
compAWeb-1.0.warand another without version
compAWeb.war

Any suggestions on how package this kind of ear file.

--
-Gautham Pamu



**********************************************************

The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email

************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org