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

后端 未结 5 1984
梦如初夏
梦如初夏 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:59

    You can avoid having it created by setting createDependencyReducedPom to false.

    e.g.

    
        org.apache.maven.plugins
        maven-shade-plugin
        ${maven-shade-plugin.version}
        
            false
        
        ....
        ....
    
    

    See more detail from apache

    enter image description here

提交回复
热议问题