-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Keven,

The Tomcat plugin should work. Make sure you have tomcat-users.xml set
up with a script user and the proper role. The file is located in
$CATALINA_HOME/conf. If you need help with that, the Tomcat mailing
list is the place to go.

We stuff the username and password in settings.xml. I suppose we could
be be a little more security conscious, but since the account running
Jenkins is locked down pretty tightly, it's not a big concern.

We use the Tomcat plugin in a separate project to deploy to various
Tomcat servers. It's all driven by Jenkins.

The Maven project does the renaming to work with parallel deployments
(project##nnnnn.war), and Jenkins is used to select which artifact
version and which server to deploy to.

So far, it's been working great. We get mail from Jenkins when an
application is deployed to the server, and Jenkins keeps a record of
everything.

. . . just my two cents
/mde/

On 10/8/2015 6:49 PM, [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?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJWF/55AAoJEEFGbsYNeTwt0HcH/R3xZvZE9it5LP00GYatwolT
LkafgEZZrdpzMyb8FqYgY6nn5W1/q7f/tGrl33XTfp4RYbl56SIpC5+MbfxuKgFb
jn+v66sDzZGaAHP/q8ZNKdm5OUBXMUwSWd4qEOso4gVxscbHPNZiAfB7Is64EOqg
5EzVjGDTV3eepz09c5rmXmI2gKPbGckd3+h+gZKvrPL64sWxJFFKqAP7nndSCEIK
35D3rCUbAt1lcuyC8kJR8iT+iBk4i/7njiNGNLtn8LwOAE1CjUxas10U2NUSB8CQ
9ik/8PXV9Y5PUqn+jTbz+so213d0RIkPKq7Z99DQn6gkBgW00r5E3AHWtWPBZYk=
=gqj1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to