What is the purpose of dependency-reduced-pom.xml generated by the shade plugin?

后端 未结 2 860
一个人的身影
一个人的身影 2020-12-08 18:22

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

2条回答
  •  无人及你
    2020-12-08 18:30

    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

    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.

提交回复
热议问题