日期:2014-05-16 浏览次数:20422 次
<!-- js压缩 -->
??????????? <plugin>
??????????????? <groupId>net.alchim31.maven</groupId>
??????????????? <artifactId>yuicompressor-maven-plugin</artifactId>
??????????????? <executions>
??????????????????? <execution>
??????????????????????? <id>compress</id>
??????????????????????? <phase>process-resources</phase>
??????????????????????? <goals>
??????????????????????????? <goal>compress</goal>
??????????????????????? </goals>
??????????????????? </execution>
??????????????? </executions>
??????????????? <configuration>
??????????????????? <encoding>UTF-8</encoding>
??????????????????? <nosuffix>true</nosuffix>
??????????????????? <jswarn>false</jswarn>
??????????????????? <linebreakpos>-1</linebreakpos>
??????????????????? <excludes>
??????????????????????? <exclude>**/*.min.js</exclude>
??????????????????????? <exclude>**/*-min.js</exclude>
??????????????????? </excludes>
??????????????? </configuration>
??????????? </plugin>
??????????? <plugin>
??????????????? <groupId>org.apache.maven.plugins</groupId>
??????????????? <artifactId>maven-war-plugin</artifactId>
??????????????? <configuration>
??????????????????? <warSourceExcludes>**/js/**,**/css/**</warSourceExcludes>
??????????????? </configuration>
??????????? </plugin>