美文网首页
Maven 打包依赖

Maven 打包依赖

作者: ilkkzm | 来源:发表于2017-03-08 14:11 被阅读0次

<pre>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.demo.App</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</pre>

相关文章

网友评论

      本文标题:Maven 打包依赖

      本文链接:https://www.haomeiwen.com/subject/otubgttx.html