RE: [Maven Users] Deploy .war to shared hosting 'remote server'

2011-01-17 Thread Nigel Weinronk
I agree that the use of the term 'deploy' seems to have caused my confusion.

I was unable to get wagon-maven-plugin to work at all seems to be a problem 
with m2eclipse integration here in picking up the settings.xml file.

However Steffan has come up with a solution using maven-antrun-plugin example 
given below.

  plugin
  artifactIdmaven-antrun-plugin/artifactId 
  version1.6/version 
  executions
execution
  iddefault-cli/id 
  goals
goalrun/goal 
  /goals
  configuration
  tasks
  ftp server=ftp.nigelproject.com remotedir= 
userid=${userid} password=${password} verbose=yes
fileset file=target/${project.build.finalName}.war / 
  /ftp
 /tasks
 /configuration
   /execution
 /executions
 dependencies
   dependency
   groupIdant/groupId 
   artifactIdant-commons-net/artifactId 
   version1.6.5/version 
 /dependency
 dependency
   groupIdcommons-net/groupId 
   artifactIdcommons-net/artifactId 
   version1.4.1/version 
 /dependency
 /dependencies
 /plugin

Thanks for all your help.

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: 13 January 2011 17:58
To: jfsmartemail-onj...@yahoo.com.au
Cc: nweinr...@btinternet.com
Subject: Fwd: [Maven Users] Deploy .war to shared hosting 'remote server'

Hi John,

I just wanted to forward you this thread from Maven Users. It seems
like you might want to add a disclaimer in Java Power Tools around
section 2.14 that makes it clear to readers that Maven's use of the
term deploy is very different from what they generally expect it to
mean.

Here's the full thread:
http://maven.40175.n5.nabble.com/Deploy-war-to-shared-hosting-remote-server-td3338859.html

Nigel, if you find a nice solution to this deployment issue using the
wagon plugin as suggested by Wendy, please do post back to the Maven
Users list and maybe also to me and John privately -- who knows, maybe
John will include it in a future edition of his book and include you
in the acknowledgements. ;-)

Wayne


-- Forwarded message --
From: Nigel Weinronk nweinr...@btinternet.com
Date: Thu, Jan 13, 2011 at 10:19 AM
Subject: RE: Deploy .war to shared hosting 'remote server'
To: Maven Users List users@maven.apache.org


Thanks for your time much appreciated.

I am looking a Cargo but in the simple case I have the 'shared hosting'
remote server does not give me access to 'tomcat/manager' so I think this
will not work either but I have only just started looking.


-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: 13 January 2011 15:48
To: Maven Users List
Subject: Re: Deploy .war to shared hosting 'remote server'

 Maybe I had misunderstood - the maven-deploy-plugin information I had read.

 For example - chapter 2.14 in the book Java Power Tools.

I found that book on Amazon and was able to dig inside it a little bit
to look at chapter 2.14.

You simply don't know/understand that the use of the word deploy in
Maven is different from what you generally understand it to mean, and
the author doesn't appear to take the time to explain it in that
section either, or if he did, I missed it. Deploy in Maven means
upload an artifact to a remote Maven repo using the Maven repo
structure/layout so others using Maven can find and use it. That is
exactly what the maven-deploy-plugin is doing for you. You can think
of deploy in Maven to mean essentially mvn install to a remote
server.

The next section in the book 2.15 talks about deploying your app to
various app servers using Cargo. This is the kind of deployment you
are looking for.

Wayne

-
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: [Maven Users] Deploy .war to shared hosting 'remote server'

2011-01-17 Thread Nigel Weinronk
wagon-maven-plugin approach works with m2eclipse 0.12.0

Nigel 

-Original Message-
From: Nigel Weinronk [mailto:nweinr...@btinternet.com] 
Sent: 17 January 2011 11:02
To: 'Wayne Fay'; jfsmartemail-onj...@yahoo.com.au; 'Maven Users List'
Cc: 'Steffan Westcott'
Subject: RE: [Maven Users] Deploy .war to shared hosting 'remote server'

I agree that the use of the term 'deploy' seems to have caused my confusion.

I was unable to get wagon-maven-plugin to work at all seems to be a problem 
with m2eclipse integration here in picking up the settings.xml file.

However Steffan has come up with a solution using maven-antrun-plugin example 
given below.

  plugin
  artifactIdmaven-antrun-plugin/artifactId 
  version1.6/version 
  executions
execution
  iddefault-cli/id 
  goals
goalrun/goal 
  /goals
  configuration
  tasks
  ftp server=ftp.nigelproject.com remotedir= 
userid=${userid} password=${password} verbose=yes
fileset file=target/${project.build.finalName}.war / 
  /ftp
 /tasks
 /configuration
   /execution
 /executions
 dependencies
   dependency
   groupIdant/groupId 
   artifactIdant-commons-net/artifactId 
   version1.6.5/version 
 /dependency
 dependency
   groupIdcommons-net/groupId 
   artifactIdcommons-net/artifactId 
   version1.4.1/version 
 /dependency
 /dependencies
 /plugin

Thanks for all your help.

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: 13 January 2011 17:58
To: jfsmartemail-onj...@yahoo.com.au
Cc: nweinr...@btinternet.com
Subject: Fwd: [Maven Users] Deploy .war to shared hosting 'remote server'

Hi John,

I just wanted to forward you this thread from Maven Users. It seems
like you might want to add a disclaimer in Java Power Tools around
section 2.14 that makes it clear to readers that Maven's use of the
term deploy is very different from what they generally expect it to
mean.

Here's the full thread:
http://maven.40175.n5.nabble.com/Deploy-war-to-shared-hosting-remote-server-td3338859.html

Nigel, if you find a nice solution to this deployment issue using the
wagon plugin as suggested by Wendy, please do post back to the Maven
Users list and maybe also to me and John privately -- who knows, maybe
John will include it in a future edition of his book and include you
in the acknowledgements. ;-)

Wayne


-- Forwarded message --
From: Nigel Weinronk nweinr...@btinternet.com
Date: Thu, Jan 13, 2011 at 10:19 AM
Subject: RE: Deploy .war to shared hosting 'remote server'
To: Maven Users List users@maven.apache.org


Thanks for your time much appreciated.

I am looking a Cargo but in the simple case I have the 'shared hosting'
remote server does not give me access to 'tomcat/manager' so I think this
will not work either but I have only just started looking.


-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: 13 January 2011 15:48
To: Maven Users List
Subject: Re: Deploy .war to shared hosting 'remote server'

 Maybe I had misunderstood - the maven-deploy-plugin information I had read.

 For example - chapter 2.14 in the book Java Power Tools.

I found that book on Amazon and was able to dig inside it a little bit
to look at chapter 2.14.

You simply don't know/understand that the use of the word deploy in
Maven is different from what you generally understand it to mean, and
the author doesn't appear to take the time to explain it in that
section either, or if he did, I missed it. Deploy in Maven means
upload an artifact to a remote Maven repo using the Maven repo
structure/layout so others using Maven can find and use it. That is
exactly what the maven-deploy-plugin is doing for you. You can think
of deploy in Maven to mean essentially mvn install to a remote
server.

The next section in the book 2.15 talks about deploying your app to
various app servers using Cargo. This is the kind of deployment you
are looking for.

Wayne

-
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: Deploy .war to shared hosting 'remote server'

2011-01-13 Thread Nigel Weinronk
Thanks for your reply.

 

Maybe I had misunderstood - the maven-deploy-plugin information I had read.

 

For example - chapter 2.14 in the book Java Power Tools.

 

I will have a look at Cargo.

 

Thanks for your help

 

 



RE: Deploy .war to shared hosting 'remote server'

2011-01-13 Thread Nigel Weinronk
Thanks for your time much appreciated.

I am looking a Cargo but in the simple case I have the 'shared hosting' 
remote server does not give me access to 'tomcat/manager' so I think this 
will not work either but I have only just started looking.


-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: 13 January 2011 15:48
To: Maven Users List
Subject: Re: Deploy .war to shared hosting 'remote server'

 Maybe I had misunderstood - the maven-deploy-plugin information I had read.

 For example - chapter 2.14 in the book Java Power Tools.

I found that book on Amazon and was able to dig inside it a little bit
to look at chapter 2.14.

You simply don't know/understand that the use of the word deploy in
Maven is different from what you generally understand it to mean, and
the author doesn't appear to take the time to explain it in that
section either, or if he did, I missed it. Deploy in Maven means
upload an artifact to a remote Maven repo using the Maven repo
structure/layout so others using Maven can find and use it. That is
exactly what the maven-deploy-plugin is doing for you. You can think
of deploy in Maven to mean essentially mvn install to a remote
server.

The next section in the book 2.15 talks about deploying your app to
various app servers using Cargo. This is the kind of deployment you
are looking for.

Wayne

-
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: Deploy .war to shared hosting 'remote server'

2011-01-13 Thread Nigel Weinronk
Thanks I will look at this.

-Original Message-
From: Wendy Smoak [mailto:wsm...@gmail.com] 
Sent: 13 January 2011 16:50
To: Maven Users List
Subject: Re: Deploy .war to shared hosting 'remote server'

On Thu, Jan 13, 2011 at 11:19 AM, Nigel Weinronk
nweinr...@btinternet.com wrote:
 Thanks for your time much appreciated.

 I am looking a Cargo but in the simple case I have the 'shared hosting'
 remote server does not give me access to 'tomcat/manager' so I think this
 will not work either but I have only just started looking.

If you just want to upload a file to an arbitrary place on some remote
server, see if the wagon plugin will help.

http://mojo.codehaus.org/wagon-maven-plugin/usage.html

-- 
Wendy

-
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



Deploy .war to shared hosting 'remote server'

2011-01-12 Thread Nigel Weinronk
I am new to web development so I hope there is enough information here.

I have a website developed under eclipse using m2eclipse/maven.

This project works fine under a local Tomcat server.

I now want to deploy the .war file to a shared hosting 'remote server'.

The rules of this server are to place the .war in a particular directory and
that is it.

So I set up the following after some reading.

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-deploy-plugin/artifactId
version2.5/version
/plugin

   extensions
  !-- Enabling the use of FTP --
  extension
groupIdorg.apache.maven.wagon/groupId
 artifactIdwagon-ftp/artifactId
 version1.0-beta-6/version
  /extension
/extensions

  distributionManagement
repository
  idnigelproject/id
  urlftp://ftp.nigelproject.com/repository /url
/repository
  /distributionManagement

This creates a repository structure on the 'remote server' and if I go to
the server and copy manually the war file to the public_html directory all
works fine. 

So my questions:

Can I just copy the war file from my local repository to the 'remote server'
using ftp - without creating a repository structure on the 'remote server' ?
(If so how is this done in Maven ?)
If not can I automatically copy from the create repository to the correct
place on the 'remote server' with Maven ? (Again how would this be done ?)


Thanks for any help.