Hmm… that’s funny. You’d at least expect an error message. Could you try it with the -d for debug option on Maven? That might give you a better insight into why it doesn’t work. I realize you didn’t ask about the Tomcat Maven plugin, but that seems like the most direct approach to getting an app onto Tomcat.
If that doesn’t work out, you could try the Maven AntRun plugin and use Ant’s scp task. Cheers, Greg Trasuk > On Oct 8, 2015, at 9:49 PM, [email protected] <[email protected]> wrote: > > I tried tomcat plugin and it starts to upload and stops no error. > > > On October 8, 2015 2:13:18 PM [email protected] wrote: > >> Check the Tomcat site for the Tomcat Maven plug-in. Not sure if it will use >> sftp, though. I believe it can use https. >> >> Cheers, >> >> Greg Trasuk. >> >> >> Sent from my BlackBerry 10 smartphone. >> Original Message >> From: [email protected] >> Sent: Thursday, October 8, 2015 4:58 PM >> To: Maven Users List >> Reply To: Maven Users List >> Subject: Re: War file name and sftp to server >> >> 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] >> >> >> --------------------------------------------------------------------- >> 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
