On Wed, Jun 22, 2011 at 11:40 AM, Wendy Smoak <[email protected]> wrote:
> 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?

I recommend reading some of the books
  http://maven.apache.org/articles.html

If you are doing anything besides just building a plain old jar file,
then you need to up skill a bit to make sure you do things right.
There is too much complexity in your build to read a of couple pages
and hack away and get a correctly working build.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to