For example, a POM dependency declaration (this is just for demo purpose and not my actual code):
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>..</dependency>
<dependency>..</dependency>
My assembly dependencySets descriptor:
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<includes>
<include>*:jar</include>
</includes>
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
</dependencySets>
From what I observed, the assembly will have extra jars (transitive) from logback-classic
and my POM dependencies will not. How to make the assembly resolving the same jars as the POM? If possible I do not want to have duplicated exclusion again in the assembly dependencySets
.
NOTE: I'm using Maven 3.2.3
in Windows 8.1
running on Java 6
.