问题描述
我读过,但没有找到任何谈论的内容它的用途是什么。
I read over the docs and didn't find anything that talks about what it's used for.
推荐答案
阴影:阴影Mojo有很好的记录,特别是关于 createDependencyReducedPom
参数,它将创建 dependency-reduced-pom.xml
文件:
The shade:shade Mojo is quite well documented, here especially about the createDependencyReducedPom
parameter, which will create that dependency-reduced-pom.xml
file: maven-shade-plugin/shade-mojo.html#createDependencyReducedPom
简而言之,如果您打算使用该着色的JAR(而不是普通的JAR)作为另一个模块的依赖项,这非常有用。 dependency-reduced-pom.xml
将不包含已存在于阴影中的JAR,从而避免无用的重复。
In short, this is quite useful if you intend to use that shaded JAR (instead of the normal JAR) as a dependency for another module. That dependency-reduced-pom.xml
will not contain the JARs already present in the shaded one, avoiding useless duplication.
这篇关于shade插件生成的dependency-reduced-pom.xml的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!