Maven shade plugin adding dependency-reduced-pom.xml to base directory

后端 未结 5 1982
梦如初夏
梦如初夏 2020-12-13 23:21

The maven shade plugin is creating a file called dependency-reduced-pom.xml and also artifactname-shaded.jar and placing them in the base directory.

<
5条回答
  •  半阙折子戏
    2020-12-13 23:50

    You could use an old version of the plugin. Version 1.7 of the maven-shade-plugin writes to /target.

    Since version 1.7.1, dependency-reduced pom.xml is written to basedir. See the issue MSHADE-124 for some reasons why it was done and what the consequences are. If you try setting dependencyReducedPomLocation, you will likely run into problems generating the site - open issue MSHADE-145.

提交回复
热议问题