汤军的技术专栏 Java Coder

Maven常用

2018-08-10
jun.tang

阅读:


本文主要记录Maven常用的技巧

插件

1. jar-with-dependencies 连通依赖打包jar

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-assembly-plugin</artifactId>
	<configuration>
		<descriptorRefs>
			<descriptorRef>jar-with-dependencies</descriptorRef>
		</descriptorRefs>
	</configuration>
	<executions>
		<execution>
			<id>assemble-all</id>
			<phase>package</phase>
			<goals>
				<goal>single</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Similar Posts

上一篇 C++常用工具

下一篇 Maven常用

Comments