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]

Reply via email to