maven: multi-module project assembly into single jar

后端 未结 3 2011
傲寒
傲寒 2021-01-02 02:06

I have a multi-module project and want to create a single jar containing the classes of all my modules. Inside my parent POM, I declared the following plugin:



        
3条回答
  •  悲哀的现实
    2021-01-02 02:14

    I think you are looking for the Maven Shade Plugin:

    http://maven.apache.org/plugins/maven-shade-plugin/index.html

    Packages up any number of dependencies into an uber package depenency. This can then be deployed to a repository.

提交回复
热议问题