How do I surpress maven assembly plugin skipping files that are already added? Or allow overwrite?

Posted by gmale on Stack Overflow See other posts from Stack Overflow or by gmale
Published on 2010-04-07T23:47:12Z Indexed on 2010/04/07 23:53 UTC
Read the original article Hit count: 1021

Hello,

For weeks, I've been wrestling with maven, getting it to deploy our project "properly."

I'm almost done but I have one stubborn little problem:

When I use the maven assembly plugin with the "directory" goal as in

mvn assembly:directory

I get LOTS of console output like the following:

[INFO] tomcat/conf already added, skipping
 [INFO] tomcat/conf/Catalina already added, skipping
 [INFO] tomcat/conf/Catalina/localhost already added, skipping
 [INFO] tomcat/webapps already added, skipping

I've written my own assembly descriptor that basically copies several FileSets into various sub-directories within our deploy directory. Messages like the ones above appear whenever a file from one FileSet is being copied to a location in which another FileSet has already created the basic directory structure (and some "default" files that can be overwritten).

So, I'm having a hard time figuring out:

How do I either 1) Suppress these messages (but only the "already added" messages) or 2) allow for overwrite?

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about maven-assembly-plugin