Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 如何使用所有非Transctive依赖项构建uber JAR?_Maven - Fatal编程技术网

Maven 如何使用所有非Transctive依赖项构建uber JAR?

Maven 如何使用所有非Transctive依赖项构建uber JAR?,maven,Maven,我有一个Maven项目,它由以下模块和子模块组成: A B (with external dependencies like junit, spring, etc.) C (with external dependencies as well) A-all (with B and C defined as dependencies) 我希望最后一个模块构建包含B和C JAR的uber JAR。我尝试将maven汇编插件与jar和依赖项一起使用desciptor

我有一个Maven项目,它由以下模块和子模块组成:

A
  B      (with external dependencies like junit, spring, etc.)
  C      (with external dependencies as well)
  A-all  (with B and C defined as dependencies)
我希望最后一个模块构建包含B和C JAR的uber JAR。我尝试将
maven汇编插件
jar和依赖项一起使用
desciptor,但最终的jar还包含可传递的依赖项,即B和C使用的依赖项


如何使用A-all模块的所有非传递依赖项构建jar?

我认为您可以将assembly插件的
UseTrantiveDependencies
标志设置为false