You can't create new "targets" in Maven2 without making a plugin. The targets maven2 understands are either <phase> or <plugin:goal>
-----Original Message----- From: david delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 6:12 PM To: Maven Users List Subject: Adding "goals" to pom.xml Hello, still in process of upgrading to maven2 here :) Most of the work is taking good shape, thanks to informations on this ML. I have a question regarding a few of our goals. We have, for a war project, added a few goals that quickly do a copy of a part of webapp to tomcat (instead of building war or even compile). This is a way to allow easy test of jsp / pictures / css. Just patch a life tomcat with new files. We do this with such a command in maven 1 maven debug_deploy:jsp maven debug_deploy:resources those goals are just simple ant copy tasks in maven.xml. What would be the recommanded way to convert this. Should i create a custom plugin that adds those targets to maven2, and include plugin in pom.xml, or is there a way to add targets to pom.xml? Should i use the ant plugin, but then how do i link it to a target instead of a phase? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]