Maven’s pom.xml is not included when using assembly plugin with ref “jar-with-dependencies”

Maven has a bug that causes the pom.xml of the current artifact to be ignored when using assembly / jar-with-dependencies. There is even a bug report from 2008 with priority “Major” (!).

As a workaround, create an XML file “assembly.xml” with the following content:

<assembly xmlns=""
  <!-- TODO: a jarjar format would be better -->

In your main pom.xml, replace:




It shouldn’t make any difference since it’s the same configuration as the one reported here, but it works for me !

This entry was posted in Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s