随手一记,maven打包

 1         <plugin>
 2                 <groupId>org.apache.maven.plugins</groupId>
 3                 <artifactId>maven-dependency-plugin</artifactId>
 4                 <version>2.7</version>
 5                 <executions>
 6                     <execution>
 7                         <phase>package</phase>
 8                         <goals>
 9                             <goal>copy-dependencies</goal>
10                         </goals>
11                     </execution>
12                 </executions>
13                 <configuration>
14                     <includeScope>system</includeScope>
15                     <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory>
16                 </configuration>
17             </plugin>
原文地址:https://www.cnblogs.com/songyz/p/7511378.html