修改maven打包插件,可以打包lib下的本地jar

master
星期八 6 years ago
parent a5390d26cd
commit c11d4685a6
  1. 17
      pom.xml

@ -484,17 +484,28 @@
<version>2.6</version>
</plugin>
<!-- war打包插件, 设定war包名称不带版本号 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<version>3.2.0</version>
<configuration>
<!-- 打包本地lib包下的jar -->
<webResources>
<resource>
<directory>${project.basedir}/lib</directory>
<targetPath>WEB-INF/lib</targetPath>
<filtering>false</filtering>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
<warName>${project.artifactId}</warName>
</configuration>
</plugin>
<!-- jar打包相关插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>

Loading…
Cancel
Save