When specifying dependency of type ZIP,
Is it possible to ignore its dependencies once packaging/assembling the artifact?
<dependency>
<groupId>com.groupId.</groupId>
<artifactId>testProject</artifactId>
<version>1.0-SNAPSHOT</version>
<type>zip</type>
</dependency>
I tried * as exclude in the assembly file, but it doesn’t seems like it have any effect
<assembly>
<id>release</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<excludes>
<exclude>*</exclude>
</excludes>
</moduleSet>
</moduleSets>
</assembly>
Thank you!
If I understand your question correctly, you want to
excludetransitive dependencies of one specificdependency, which is of typezip.You would use
moduleSetin a multi-module project.