Hi there, I think the best start would be to read the following PDF called "Maven: The definitive Guide" found at Sonatype.
http://www.sonatype.com/community/definitive_guide.html It really helps you through the understanding of executing maven. It takes you through the creation of a simple jar and then moves you onto a web application and then combines the projects together to create a enterprise style application. Also on the maven site is this resource http://maven.apache.org/guides/getting-started/index.html - heading "How do I build other types of projects" I have been using maven for a while and recently decided to reread the book and I think it is a really great resource. From you mail you know what you want to create and with this in mind the book should really flow. Hope this helps Trent On 14/08/2008, Maksim <[EMAIL PROTECTED]> wrote: > > Hi. > > Maybe I'm missing something, but how in the heck I can perform simple > tasks with maven2? > > Real world example, I need to create project's WAR file. With ANT I'm > creating specific target <dist_production> which consists of following > steps: > 1. Clean folder where classes are compiled (via depends="clean" in > <dist_production> target) - simply deleting them. > 2. Compile java sources to previously cleaned folder (via > depends="compile" in <dist_production> target). > 3. Some configuration files are copied to the folder, where sources > where previously compiled (<copy file...) > 4. WAR file is created and placed in some folder. Older WAR file, > which was located there is renamed to <war_filename_current_date.back> > and placed to folder "backs". > > *Questions* > 1. How do I create a target in maven (like ANT's target)? I didn't > succeed finding information about that in documentation. > 2. How I can perform those operation in maven style? If possible, > without ANT plugin. Just using maven. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
