With Maven, how can I build a distributable that has my project's jar and all of the dependent jars?

前端 未结 3 1317

I have a project (of type \'jar\') that (obviously) builds a jar. But that project has many dependencies. I\'d like Maven to build a \"package\" or \"assembly\" that cont

3条回答
  •  自闭症患者
    2020-12-01 04:14

    I have used the maven assembly plugin to packages everything in one single jar. you can find info here http://maven.apache.org/plugins/maven-assembly-plugin/ http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

    HTH.

提交回复
热议问题