To rename the produced artifacts and remove the version you can use another
final name template like:
<finalName>${artifactId}</finalName>
(See
stackoverflow.com/questions/9593473/how-to-build-project-with-maven-without-version)
However it is usually better to stick to that convention and configure the
deployment mechanism to do the rename.
I dont have a good recommendation which plugin to use to deploy via sftp (I
typically do this with some more steps in the build pipeline of the CI server),
but typically wagon or upload plugins are used, like described here:
http://stackoverflow.com/questions/6291221/in-maven-how-do-i-copy-files-using-the-wagon-plugin
Gruss
Bernd
--
http://bernd.eckenfels.net
-----Original Message-----
From: K R <[email protected]>
To: Maven Users List <[email protected]>
Sent: Do., 08 Okt. 2015 22:16
Subject: War file name and sftp to server
I have this in pom.xml
<version>0.0.1-SNAPSHOT</version>
<name>YT-100_ATU_Controller</name>
and I get YT-100_ATU_Controller-0.0.1-SNAPSHOT.war how do I get
YT-100_ATU_Controller.war?
How do I sftp it to the server?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]