On Tue, Jun 21, 2011 at 10:06 PM, samwun <[email protected]> wrote:
> Every time when I build a maven project, I need to manually remove all > generated files under the "target" directory. > > How can I use maven remove all these files before starting the build? > maven command I used is: > > mvn compile war:war "mvn clean" will remove the target directory and everything in it. Try just "mvn clean install" -- not sure why you're having to run the war plugin separately. Is this a webapp project? -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
