You could also use the ship-maven-plugin to help with your scripting. On 17 January 2011 11:02, Nigel Weinronk <nweinr...@btinternet.com> wrote: > 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> > <artifactId>maven-antrun-plugin</artifactId> > <version>1.6</version> > <executions> > <execution> > <id>default-cli</id> > <goals> > <goal>run</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> > <groupId>ant</groupId> > <artifactId>ant-commons-net</artifactId> > <version>1.6.5</version> > </dependency> > <dependency> > <groupId>commons-net</groupId> > <artifactId>commons-net</artifactId> > <version>1.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