mvn clean install will do much of the trick for you (deleting everything under target, and building a 'standard' jar out of your project).
If you want a different jar, you have to change the maven-jar-plugin configuration. If you want a more subtle bundling of your project (a jar including dependencies, or source, a zip including documentation, or whatever), you have to go to the maven-assembly-plugin (binding it to the install phase is considered good practice). Denis Peter.Pilgrim wrote: > > Hi All > > You now I have reached the point in a project where I have no clue > what is the equivalent of "ant dist" in Maven 2.0? > > In other words I want to create a ZIP or JAR distribution of > my project. Clean it, remove all the target/** and another generated > source stuff from all folders, including sub folders. > > > -- > Peter Pilgrim > UBS Investment Bank, > PTS Portal / IT FIRC OPS LDN, > 100 Liverpool Street, London EC2M 2RH, United Kingdom > :: Java EE / E-Commerce / Enterprise Integration / Development :: > > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please > notify the sender immediately by e-mail if you have received this > e-mail by mistake and delete this e-mail from your system. > > E-mail transmission cannot be guaranteed to be secure or error-free > as information could be intercepted, corrupted, lost, destroyed, > arrive late or incomplete, or contain viruses. The sender therefore > does not accept liability for any errors or omissions in the contents > of this message which arise as a result of e-mail transmission. If > verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-M2--Equivalent-of-ant-dist-in-Maven-tf2034659.html#a5609181 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]