shade插件生成的dependency-reduced-pom.xml的目的是什么? [英] What is the purpose of dependency-reduced-pom.xml generated by the shade plugin?

查看:356
本文介绍了shade插件生成的dependency-reduced-pom.xml的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过文档,但没有找到任何谈论的内容它的用途是什么。

I read over the docs and didn't find anything that talks about what it's used for.

推荐答案

阴影:阴影Mojo有很好的记录,特别是关于 createDependencyReducedPom 参数,它将创建 dependency-reduced-pom.xml 文件: maven-shade-plugin / shade-mojo.html#createDependencyReducedPom

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的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆