赞
踩
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/lib</outputDirectory> </configuration> </execution> </executions> </plugin>
将仓库中的jar包打到对应的目录中。
使用mvn package
打包后会在项目对应的target的lib下生成项目依赖的jar包
good luck
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。