Dependencies maven assembly-忽略zip依赖性的依赖性

Dependencies maven assembly-忽略zip依赖性的依赖性,dependencies,maven-3,maven-assembly-plugin,Dependencies,Maven 3,Maven Assembly Plugin,指定ZIP类型的依赖关系时,打包/组装工件后是否可以忽略其依赖关系 <dependency> <groupId>com.groupId.</groupId> <artifactId>testProject</artifactId> <version>1.0-SNAPSHOT</version> <type>zip</type> </dependency>

指定ZIP类型的依赖关系时,
打包/组装工件后是否可以忽略其依赖关系

<dependency> 
  <groupId>com.groupId.</groupId> 
  <artifactId>testProject</artifactId> 
  <version>1.0-SNAPSHOT</version> 
  <type>zip</type> 
</dependency> 

com.groupId。
测试项目
1.0-快照
拉链
我尝试将*作为程序集文件中的排除项,但似乎没有任何效果

<assembly>
  <id>release</id>
  <formats>
    <format>dir</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <moduleSets>
    <moduleSet>
      <excludes>
        <exclude>*</exclude>
      </excludes>
    </moduleSet>
  </moduleSets>
</assembly>

释放
迪尔
假的
*

谢谢大家!

如果我正确理解了您的问题,您希望
排除一个特定
依赖项
的可传递依赖项,该依赖项的类型为
zip

  <dependencySets>
    <dependencySet>
      <includes>
        <include>com.groupId:testProject:zip</exclude>
        <useTransitiveDependencies>false</useTransitiveDependencies>
      </includes>
    </dependencySet>
    ....
  </dependencySets>

com.groupId:testProject:zip
假的
....
您可以在多模块项目中使用
moduleSet