2
使用Wro-maven plugin
版本1.8.0
。更新CSS文件時,一旦在Maven上觸發了全新安裝,則更改將丟失在CSS文件中並且存在舊文件。WRO-Maven插件 - CSS更改被覆蓋
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<version>1.8.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
\t <nosuffix>true</nosuffix>
<minimize>true</minimize>
<destinationFolder>${basedir}/src/main/webapp/wro/</destinationFolder>
<contextFolder>${basedir}/src/main/webapp/</contextFolder>
<wroFile>${basedir}/src/main/resources/wro.xml</wroFile>
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
<extraConfigFile>${basedir}/src/main/resources/wro.properties</extraConfigFile>
<ignoreMissingResources>false</ignoreMissingResources>
</configuration>
</plugin>
請幫助。