maven copy jar包到指定lib目录

  1. <build>  
  2.     <pluginManagement>  
  3.         <plugins>  
  4.             <plugin>  
  5.                 <artifactId>maven-compiler-plugin</artifactId>  
  6.                 <configuration>  
  7.                     <source>1.6</source>  
  8.                     <target>1.6</target>  
  9.                 </configuration>  
  10.             </plugin>  
  11.             <plugin>  
  12.                 <groupId>org.eclipse.m2e</groupId>  
  13.                 <artifactId>lifecycle-mapping</artifactId>  
  14.                 <version>1.0.0</version>  
  15.                 <configuration>  
  16.                     <lifecycleMappingMetadata>  
  17.                         <pluginExecutions>  
  18.                             <pluginExecution>  
  19.                                 <pluginExecutionFilter>  
  20.                                     <groupId>org.apache.maven.plugins</groupId>  
  21.                                     <artifactId>maven-dependency-plugin</artifactId>  
  22.                                     <versionRange>[2.0,)</versionRange>  
  23.                                     <goals>  
  24.                                         <goal>copy-dependencies</goal>  
  25.                                     </goals>  
  26.                                 </pluginExecutionFilter>  
  27.                                 <action>  
  28.                                     <ignore />  
  29.                                 </action>  
  30.                             </pluginExecution>  
  31.                         </pluginExecutions>  
  32.                     </lifecycleMappingMetadata>  
  33.                 </configuration>  
  34.             </plugin>  
  35.         </plugins>  
  36.     </pluginManagement>  
  37.     <plugins>  
  38.         <plugin>  
  39.             <groupId>org.apache.maven.plugins</groupId>  
  40.             <artifactId>maven-dependency-plugin</artifactId>  
  41.             <executions>  
  42.                 <execution>  
  43.                     <id>copy-dependencies</id>  
  44.                     <phase>package</phase>  
  45.                     <goals>  
  46.                         <goal>copy-dependencies</goal>  
  47.                     </goals>  
  48.                     <configuration>  
  49.                         <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>  
  50.                         <excludeTransitive>false</excludeTransitive>  
  51.                         <stripVersion>true</stripVersion>  
  52.                     </configuration>  
  53.                 </execution>  
  54.             </executions>  
  55.         </plugin>  
  56.     </plugins>  
  57. </build>  
本人在码云上提交了关于阅读spring源码之后编写的一些基础模块的实现,https://git.oschina.net/73hulu/spring.git 望大家不吝给颗星star,谢谢大家
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值