首先配置依赖,引入需要依赖的war包和zip包:
<dependency>
<groupId>com.huawei.mateinfo</groupId>
<artifactId>kewen-common-war</artifactId>
<version>0.0.1</version>
<type>war</type>
</dependency>
<dependency>
<groupId>com.huawei.mateinfo</groupId>
<artifactId>kewen-common-war-template</artifactId>
<version>0.0.1</version>
<type>zip</type>
</dependency>
在使用maven-dependency-plugin插件,指定依赖的文件解压路径:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<pha