当前位置:   article > 正文

maven copy jar包到lib目录_maven 拷贝jar包 到lib

maven 拷贝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> 
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/308085
推荐阅读
相关标签
  

闽ICP备14008679号