9
votes

when building a jar-with-dependencies with the assembly plugin, I get many, many messages like this:

META-INF/ already added, skipping

It seems to mee, that maven is warning me, that I already have a META-INF in my to-be-created jar, and therefore the META-INF of the to-be-included dependant jar file is not included in my to-be-created jar. Well, this is exactly what I want, and I want to ged rid of those messages. Is there a way to achieve this?

Regards, Martin.

3

3 Answers

6
votes

The info messages are coming from the Plexus Archiver. There is an open bug report on this issue:

http://jira.codehaus.org/browse/PLXCOMP-129

3
votes

The Plexus bug mentioned by vocaro has been fixed. Using the maven-assembly-plugin with version 2.4 (highest at time of writing) does not print the verbose messages.

1
votes

Maven won't create the META-INF twice if it has already been created but it should add the content from the various JARs to it. However, it won't add non-unique files n-times, nor merge the content.

Isn't this what you're experiencing? What does the assembly jar looks like? What is the expected result?