在我的项目中,我有一些aar依赖项。我不希望将这些aar文件部署到WEB/lib文件夹中。我想把它们部署到其他文件夹中。但是我找不到设置m2e-wtp插件的地方。
我的pom文件就像:
<dependency>
<groupId>my.group</groupId>
<artifactId>my-soap</artifactId>
<type>aar</type>
<version>1.0.0</version>
</dependency>发布于 2016-01-02 19:41:12
这应该是可行的:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<webResources>
<webResource>
<directory>${settings.localRepository}/my.group/my-soap/1.0.0/</directory>
<targetPath>destination/folder</targetPath><!-- optional, will deploy at the root of the webapp by default-->
<includes>
<include>*.aar</include>
</includes>
</webResource>
</webResources>
</configuration>
</plugin>https://stackoverflow.com/questions/31313293
复制相似问题