Hi,
 

> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED] 
> Sent: 13 November 2008 18:14
> To: Maven Users List
> Subject: Re: Tomcat projects
>
> Google tells me there are a few tomcat plugins for Maven.
> http://mojo.codehaus.org/tomcat-maven-plugin/
> http://cargo.codehaus.org/
> (read more: 
> http://www.gorerle.com/vlab-wiki/index.php?title=Tomcat_Deploy
> ment_in_Maven2)

I'll have a read.

> > mvn -o jar:jar; cp target/CreateOrCommentHandler-0.0.1-SNAPSHOT.jar
> > ~/tomcat/webapps/myapp/WEB-INF/lib/
> 
> Any particular reason why you're invoking jar:jar rather than 
> simply "mvn package", or even better, "mvn clean package"?

Well it takes 57 seconds to do something that should take a few seconds
using mvn package. 

I find that when I'm writing web projects, I want to deploy in under 5
seconds - if one is rapidly iterating between fiddling with javascript
and testing, a huge build process does not help.  I think it's very
important to keep this point on board when devising build systems.

> > Finally, I noticed there was a way to get a list of targets 
> in maven1 
> > - does this switch exist in maven2?
> 
> The concept of a "list of targets" is not appropriate for 
> Maven2, as it is for ant and m1. You should be binding 
> plugins to the build lifecycle so every build automatically 
> uses the various plugins it requires at the proper time 
> during the lifecycle of your build.

If mvn package isn't a target, it's something else, and whatever else it
may be, it's something I pass to mvn to get output.  Therefore,
something to list these would be very helpful :)

> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
_______________________________________________

This e-mail may contain information that is confidential, privileged or 
otherwise protected from disclosure. If you are not an intended recipient of 
this e-mail, do not duplicate or redistribute it by any means. Please delete it 
and any attachments and notify the sender that you have received it in error. 
Unless specifically indicated, this e-mail is not an offer to buy or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or service, an official confirmation of any transaction, or 
an official statement of Barclays. Any views or opinions presented are solely 
those of the author and do not necessarily represent those of Barclays. This 
e-mail is subject to terms available at the following link: 
www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the 
foregoing.  Barclays Capital is the investment banking division of Barclays 
Bank PLC, a company registered in England (number 1026167) with its registered 
office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be 
sent from other members of the Barclays Group.
_______________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to