Tomcat7 running on Raspberry Pi
On October 8, 2015 1:36:53 PM Curtis Rueden <[email protected]> wrote:
Hi K R,
How do I sftp it to the server?
What kind of server? Web server? Maven repository? Something else?
== Web server ==
If it's just a web server, typically that is done outside of the Maven
build. You can also rename the file at that point. Alternately, you can use
the exec-maven-plugin to automate whatever steps you want during any
phase(s) of your Maven build.
== Maven repository ==
If you want to transfer the final artifact to a Maven repository, this is
called "deploying" the artifact, and is done by Maven's deploy phase. You
have to configure the "wagon" plugin you want to use. For SFTP you'd use
wagon-ssh [1].
You have to add a distributionManagement section to your POM, and put your
credentails in your ~/.m2/settings.xml. See:
https://maven.apache.org/plugins/maven-deploy-plugin/usage.html
However, note that you cannot override the final name of the artifact in
your remote Maven repository, since Maven repos use a standard naming
scheme which includes the version suffix.
== Something else ==
Feel free to elaborate on your question. ;-)
http://stackoverflow.com/help/how-to-ask
Regards,
Curtis
[1] https://maven.apache.org/wagon/wagon-providers/wagon-ssh/
On Thu, Oct 8, 2015 at 3:16 PM, K R <[email protected]> wrote:
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]