On 11/04/2008, at 3:15 PM, youhaodeyi wrote:

By default, Maven will package all the classes under target/classes directory into a jar file. But some classes are not generated by compiling, by running
a Java application. How can I let Maven run a java application before
packaging?

You can use the ant exec task of the ant run plugin and bind it to the generate-sources phase…

http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html

LD.



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

Reply via email to