You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Scott Purcell <sp...@ilevy.com> on 2006/11/01 14:45:37 UTC

Overview - Ant to Maven

Hello,

 

I have been reading about Maven2, but have many questions in regards to
its use. Here is my current workflow:

 

I create webapps, and basically do a compile or deploy with ant, and the
ant script takes care of compiling, and moving the code to a Tomcat
server. Also I can reload with the ant script to reload the app in the
case of servlet changes, prop changes, etc.

 

Before I spend a huge amount of time, I am trying to find out if this
can be done? And if so possibly some starting point, examples urls, etc.
Something to possibly get me started with this transition.

 

Sincerely

Scott


Re: Overview - Ant to Maven

Posted by Wayne Fay <wa...@gmail.com>.
Personally I "solve" this "problem" by building and deploying on the
App Server itself... So there's no waiting for the EAR to be copied
over the network etc. ;-)

Wayne

On 11/2/06, Vincent Massol <vi...@massol.net> wrote:
>
>
> > -----Original Message-----
> > From: Wayne Fay [mailto:waynefay@gmail.com]
> > Sent: jeudi 2 novembre 2006 06:46
> > To: Maven Users List
> > Subject: Re: Overview - Ant to Maven
> >
> > Kevin, I'm not sure there's another way to do a remote deploy. At
> > least, this is how "every" command-line based deploy tool I've ever
> > used has worked, including deployment tools included with Oracle App
> > Server and other J2EE servers.
> >
> > It might be nice if the tool would instead copy the war file, THEN
> > undeploy, and finally deploy, but it seems like this is just generally
> > not available, at least not from the command line tools.
>
> Yes, Wayne is right, there's little Cargo can do here as Cargo is reusing
> the "tools" provided by the app servers to do remote deployment. Yesterday
> I've just implemented redeploy for JBoss 4.x and it was nice to see that the
> JBoss remote deployer had a redeploy action built in. (However the JBoss
> remote deployer doesn't copy the artifact to the server so it has to be
> there but that's another story).
>
> What I've suggested to Kevin was to do some research on the Tomcat Manager
> Application to check if it had a mode for redeploying a WAR or for updating
> an already deployed WAR. I've noticed there's an "update" parameter on
> http://tinyurl.com/ye48z3. I haven't tried it and I don't know what it does.
>
> Kevin if you find a way, we'll be happy to modify Cargo's code to use it.
>
> Thanks
> -Vincent
>
> > On 11/1/06, Kevin Jackson <fo...@gmail.com> wrote:
> > > > for deploying have a look at cargo at:
> > > > http://cargo.codehaus.org/
> > >
> > > I have used the cargo plugin and the tomcat plugin and both of them
> > > have a flaw if you are deploying to a remote server (ie one without
> > > maven installed on it).
> > >
> > > When they deploy, they first undeploy your application, then they
> > copy
> > > the war file over from your client to the server, then they deploy
> > the
> > > new war file (just copied over).
> > >
> > > This is ok if you have a fast connection between the client machine
> > > (running maven) and the server (running tomcat).  But if you are
> > doing
> > > this over the internet, the time you application is offline can be
> > > quite long as you must wait for the whole war file to be copied over
> > > while your app isn't available.
> > >
> > > Kev
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
>
> 	
>
> 	
> 		
> ___________________________________________________________________________
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
> interface révolutionnaire.
> http://fr.mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


RE: Overview - Ant to Maven

Posted by Vincent Massol <vi...@massol.net>.

> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com]
> Sent: jeudi 2 novembre 2006 06:46
> To: Maven Users List
> Subject: Re: Overview - Ant to Maven
> 
> Kevin, I'm not sure there's another way to do a remote deploy. At
> least, this is how "every" command-line based deploy tool I've ever
> used has worked, including deployment tools included with Oracle App
> Server and other J2EE servers.
> 
> It might be nice if the tool would instead copy the war file, THEN
> undeploy, and finally deploy, but it seems like this is just generally
> not available, at least not from the command line tools.

Yes, Wayne is right, there's little Cargo can do here as Cargo is reusing
the "tools" provided by the app servers to do remote deployment. Yesterday
I've just implemented redeploy for JBoss 4.x and it was nice to see that the
JBoss remote deployer had a redeploy action built in. (However the JBoss
remote deployer doesn't copy the artifact to the server so it has to be
there but that's another story).

What I've suggested to Kevin was to do some research on the Tomcat Manager
Application to check if it had a mode for redeploying a WAR or for updating
an already deployed WAR. I've noticed there's an "update" parameter on
http://tinyurl.com/ye48z3. I haven't tried it and I don't know what it does.

Kevin if you find a way, we'll be happy to modify Cargo's code to use it.

Thanks
-Vincent

> On 11/1/06, Kevin Jackson <fo...@gmail.com> wrote:
> > > for deploying have a look at cargo at:
> > > http://cargo.codehaus.org/
> >
> > I have used the cargo plugin and the tomcat plugin and both of them
> > have a flaw if you are deploying to a remote server (ie one without
> > maven installed on it).
> >
> > When they deploy, they first undeploy your application, then they
> copy
> > the war file over from your client to the server, then they deploy
> the
> > new war file (just copied over).
> >
> > This is ok if you have a fast connection between the client machine
> > (running maven) and the server (running tomcat).  But if you are
> doing
> > this over the internet, the time you application is offline can be
> > quite long as you must wait for the whole war file to be copied over
> > while your app isn't available.
> >
> > Kev
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


	

	
		
___________________________________________________________________________ 
Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire.
http://fr.mail.yahoo.com

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


Re: Overview - Ant to Maven

Posted by Wayne Fay <wa...@gmail.com>.
Kevin, I'm not sure there's another way to do a remote deploy. At
least, this is how "every" command-line based deploy tool I've ever
used has worked, including deployment tools included with Oracle App
Server and other J2EE servers.

It might be nice if the tool would instead copy the war file, THEN
undeploy, and finally deploy, but it seems like this is just generally
not available, at least not from the command line tools.

Wayne

On 11/1/06, Kevin Jackson <fo...@gmail.com> wrote:
> > for deploying have a look at cargo at:
> > http://cargo.codehaus.org/
>
> I have used the cargo plugin and the tomcat plugin and both of them
> have a flaw if you are deploying to a remote server (ie one without
> maven installed on it).
>
> When they deploy, they first undeploy your application, then they copy
> the war file over from your client to the server, then they deploy the
> new war file (just copied over).
>
> This is ok if you have a fast connection between the client machine
> (running maven) and the server (running tomcat).  But if you are doing
> this over the internet, the time you application is offline can be
> quite long as you must wait for the whole war file to be copied over
> while your app isn't available.
>
> Kev
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Overview - Ant to Maven

Posted by Kevin Jackson <fo...@gmail.com>.
> for deploying have a look at cargo at:
> http://cargo.codehaus.org/

I have used the cargo plugin and the tomcat plugin and both of them
have a flaw if you are deploying to a remote server (ie one without
maven installed on it).

When they deploy, they first undeploy your application, then they copy
the war file over from your client to the server, then they deploy the
new war file (just copied over).

This is ok if you have a fast connection between the client machine
(running maven) and the server (running tomcat).  But if you are doing
this over the internet, the time you application is offline can be
quite long as you must wait for the whole war file to be copied over
while your app isn't available.

Kev

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


Re: Overview - Ant to Maven

Posted by Alexandre Russel <al...@russel.fr>.
>
> Before I spend a huge amount of time, I am trying to find out if this
> can be done? And if so possibly some starting point, examples urls, etc.
> Something to possibly get me started with this transition.

It is possible. You could read the maven book at:
http://www.mergere.com/m2book_download.jsp
for deploying have a look at cargo at:
http://cargo.codehaus.org/
As explained in the book, to help you during the transition the ant plugin can 
be helpfull:
http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html
good luck
alex