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>
任何建議嗎?