0
我明確有關該插件的說明過程resoures運行,雖然這是沒有必要根據文檔:http://alchim.sourceforge.net/yuicompressor-maven-plugin/usage_compress.htmlMaven的YUI壓縮插件不處理資源
在運行時:
mvn net.alchim31.maven:yuicompressor-maven-plugin:compress
它運行良好。
當運行:
mvn process-resources
它不運行,即使在exec插件,我對這個階段確實工作。
這裏是我的pom.xml的相關部分:
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-resoures</phase>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>