maven 相关学习 原

2019-05-29 11:39:00 浏览数 (1)

为什么80%的码农都做不了架构师?>>>

  • 将依赖包打包到一起
代码语言:javascript复制
<build>		
	<plugins>
		<plugin>  
			<artifactId>maven-assembly-plugin</artifactId>  
			<configuration>  
				<descriptorRefs>  
					<descriptorRef>jar-with-dependencies</descriptorRef>  
				</descriptorRefs>  
			</configuration>  
			<executions>
				<execution>
					<id>make-assembly</id>
					<phase>package</phase>
					<goals>
						<goal>attached</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>

0 人点赞