将maven 项目的jar copy 到项目的target/lib目录下
XML Code
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<plugin>
<groupId>org.apache.maven.plugins </groupId> <artifactId>maven-dependency-plugin </artifactId> <version>2.1 </version> <executions> <execution> <id>copy-dependencies </id> <phase>package </phase> <goals> <goal>copy-dependencies </goal> </goals> <configuration> <type>jar </type> <includeTypes>jar </includeTypes> <outputDirectory>${project.build.directory} /lib </outputDirectory> </configuration> </execution> </executions> </plugin> |