1
我在Maven项目中有一个需要被模糊处理的文件。目前我:mvn战争:没有复制资源的战争
- 清理/构建项目;
- 打开一个永久的应用程序来混淆
/target/ROOT/blah
文件夹中的文件;
我当时想运行mvn war:war
但它总是复制资源文件夹返回到其覆盖obsfuscated文件夹/target/ROOT
。
MVN输出
Packaging webapp
Assembling webapp [core] in [core\target\ROOT]
Processing war project
Copying webapp resources [src\main\webapp] <= I THINK THIS IS THE PROBLEM
Webapp assembled in [22812 msecs]
Building war: target\ROOT.war
我曾尝试以下,并有一些变化:
<profile>
<id>war-only</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<warSourceExcludes>**</warSourceExcludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
任何建议吗?