Hi Marek,

when you configure the pom

<finalname>custom_warname</finalname>

and execute "mvn install", the artifact installed in your local repo will still follow the naming convention which is <artifact>-<version>. But the war generated in your target directory will follow your custom warname.

-allan

Mark Struberg wrote:
if you only want to change the name of the generated
war file, then you may simply use
<finalname>yourwarname</finalname>

After $ mvn package
you will end up having a file
./target/yourwarname.war

which may e.g. be locally deployed and started with
cargo
$ mvn cargo:start
ending up with the contextpath yourwarname.

lg,
strub

--- dawn <[EMAIL PROTECTED]> schrieb:

Hi Marek,

I don't think there's a work around for this as of
the moment. Every
artifact installed in the repository should follow
the naming convention
<artifact>-<version>.

Dawn


Marek Chowaniok wrote:
Hi,
I want to change name of created war file. Usually it is created in the form of
<artifact>-<version>.
There is attribute called <warName> which results
in generating war file
with this name but when I do mvn install it
doesn't install the war with
new generated name but with name
<artifact>-<version>.war
Is it the default action? Does some has some work
arround?
thanks

--
View this message in context:

http://www.nabble.com/changing-war-name-when-installiing-to-repository-tf2492849.html#a6951057
Sent from the Maven - Users mailing list archive at
Nabble.com.



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





        

        
                
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

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


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

Reply via email to