Re: War file name and sftp to server

2015-10-09 Thread Wayne Fay
Also check for error messages on the Tomcat server side, in the Tomcat logs.

Wayne
On Oct 8, 2015 6:49 PM, "ke...@na7kr.us" <krr...@gmail.com> wrote:

> I tried tomcat plugin and it starts to upload and stops no error.
>
>
> On October 8, 2015 2:13:18 PM tras...@stratuscom.com 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: ke...@na7kr.us
>> 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 <ctrue...@wisc.edu> 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 <krr...@gmail.com> wrote:
>>>
>>> I have this in pom.xml
>>>>
>>>> 0.0.1-SNAPSHOT
>>>> YT-100_ATU_Controller
>>>>
>>>> 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: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: War file name and sftp to server

2015-10-09 Thread Mark Eggers
-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##n.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, ke...@na7kr.us wrote:
> I tried tomcat plugin and it starts to upload and stops no error.
> 
> 
> On October 8, 2015 2:13:18 PM tras...@stratuscom.com 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: 
>> ke...@na7kr.us 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 <ctrue...@wisc.edu> 
>> 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 <krr...@gmail.com> wrote:
>>> 
>>>> I have this in pom.xml
>>>> 
>>>> 0.0.1-SNAPSHOT 
>>>> YT-100_ATU_Controller
>>>> 
>>>> 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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: War file name and sftp to server

2015-10-09 Thread K R
I do see this:
[09/Oct/2015:19:14:49 +] "PUT
/manager/deploy?path=%2FYT-100_ATU_Controller HTTP/1.1" 403 3196




On Fri, Oct 9, 2015 at 9:39 AM, Wayne Fay <wayne...@gmail.com> wrote:

> Also check for error messages on the Tomcat server side, in the Tomcat
> logs.
>
> Wayne
> On Oct 8, 2015 6:49 PM, "ke...@na7kr.us" <krr...@gmail.com> wrote:
>
> > I tried tomcat plugin and it starts to upload and stops no error.
> >
> >
> > On October 8, 2015 2:13:18 PM tras...@stratuscom.com 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: ke...@na7kr.us
> >> 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 <ctrue...@wisc.edu> 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 <krr...@gmail.com> wrote:
> >>>
> >>> I have this in pom.xml
> >>>>
> >>>> 0.0.1-SNAPSHOT
> >>>> YT-100_ATU_Controller
> >>>>
> >>>> 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: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>


Re: War file name and sftp to server

2015-10-09 Thread Greg Trasuk

403 error means “Forbidden”.  

The good news is - Maven deployer is obviously connecting to the Tomcat Manager 
app before it gets turned away for being unauthorized.  So you’re 95% of the 
way there!  The remote does a “HTTP PUT” request that contains the application 
that you’re trying to deploy.  It just means Tomcat is saying “no”.

The 403 means the Maven deployer client failed to authenticate to the Tomcat 
deployer application.  I’m not sure the exact incantation to get it to work, 
but it probably has something to do with ‘conf/tomcat-users.xml’ in the tomcat 
folder.  You need to create a user id that has the ‘manager-script’ role (more 
info in 
http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_Archive_%28WAR%29_Remotely).

You’ll also have to make the  user id and password available to the Tomcat 
Maven plugin.  Information on this appears to be at 
http://tomcat.apache.org/maven-plugin-2.0/tomcat7-maven-plugin/usage.html

Sorry I can’t give you a more detailed answer, but hopefully that points you in 
the right direction.

Cheers,

Greg Trasuk

> On Oct 9, 2015, at 3:29 PM, K R <krr...@gmail.com> wrote:
> 
> I do see this:
> [09/Oct/2015:19:14:49 +] "PUT
> /manager/deploy?path=%2FYT-100_ATU_Controller HTTP/1.1" 403 3196
> 
> 
> 
> 
> On Fri, Oct 9, 2015 at 9:39 AM, Wayne Fay <wayne...@gmail.com> wrote:
> 
>> Also check for error messages on the Tomcat server side, in the Tomcat
>> logs.
>> 
>> Wayne
>> On Oct 8, 2015 6:49 PM, "ke...@na7kr.us" <krr...@gmail.com> wrote:
>> 
>>> I tried tomcat plugin and it starts to upload and stops no error.
>>> 
>>> 
>>> On October 8, 2015 2:13:18 PM tras...@stratuscom.com 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: ke...@na7kr.us
>>>> 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 <ctrue...@wisc.edu> 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 <krr...@gmail.com> wrote:
>>>>> 
>>>>> I have this in pom.xml
>>>>>> 
>>>>>> 0.0.1-SNAPSHOT
>>>>>> YT-100_ATU_Controller
>>>>>> 
>>>>>> 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: users-unsubscr...@maven.apache.org
>>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>> 
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>> 
>>>> 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>> 
>>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: War file name and sftp to server

2015-10-08 Thread Curtis Rueden
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  wrote:

> I have this in pom.xml
>
> 0.0.1-SNAPSHOT
> YT-100_ATU_Controller
>
> 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?
>


Re: War file name and sftp to server

2015-10-08 Thread ecki
To rename the produced artifacts and remove the version you can use another 
final name template like:

${artifactId}

(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 <krr...@gmail.com>
To: Maven Users List <users@maven.apache.org>
Sent: Do., 08 Okt. 2015 22:16
Subject: War file name and sftp to server

I have this in pom.xml

0.0.1-SNAPSHOT
YT-100_ATU_Controller

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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: War file name and sftp to server

2015-10-08 Thread ke...@na7kr.us

Tomcat7 running on Raspberry Pi


On October 8, 2015 1:36:53 PM Curtis Rueden  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  wrote:


I have this in pom.xml

0.0.1-SNAPSHOT
YT-100_ATU_Controller

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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: War file name and sftp to server

2015-10-08 Thread trasukg
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: ke...@na7kr.us
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 <ctrue...@wisc.edu> 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 <krr...@gmail.com> wrote:
>
>> I have this in pom.xml
>>
>> 0.0.1-SNAPSHOT
>> YT-100_ATU_Controller
>>
>> 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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



War file name and sftp to server

2015-10-08 Thread K R
I have this in pom.xml

0.0.1-SNAPSHOT
YT-100_ATU_Controller

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?


Re: War file name and sftp to server

2015-10-08 Thread ke...@na7kr.us

I tried tomcat plugin and it starts to upload and stops no error.


On October 8, 2015 2:13:18 PM tras...@stratuscom.com 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: ke...@na7kr.us
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 <ctrue...@wisc.edu> 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 <krr...@gmail.com> wrote:


I have this in pom.xml

0.0.1-SNAPSHOT
YT-100_ATU_Controller

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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: War file name and sftp to server

2015-10-08 Thread Greg Trasuk

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, ke...@na7kr.us <krr...@gmail.com> wrote:
> 
> I tried tomcat plugin and it starts to upload and stops no error.
> 
> 
> On October 8, 2015 2:13:18 PM tras...@stratuscom.com 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: ke...@na7kr.us
>> 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 <ctrue...@wisc.edu> 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 <krr...@gmail.com> wrote:
>>> 
>>>> I have this in pom.xml
>>>> 
>>>> 0.0.1-SNAPSHOT
>>>> YT-100_ATU_Controller
>>>> 
>>>> 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: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org