mvn install jar-with-dependencies

后端 未结 5 1697
情歌与酒
情歌与酒 2021-02-04 10:28

Is there a way to do an install on a jar-with-dependencies created using maven-assembly-plugin?

5条回答
  •  渐次进展
    2021-02-04 11:24

    One way would be to create a project where you use the assembly-plugin. In the assembly-plugin configuration you can specify what output you want (jar, zip, ...)

    In this projects pom you can put your dependencies and build it. Every time you execute the install command all your dependencies will be in your packaged file.

提交回复
热议问题