| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>cn.vbdsm</groupId>
- <artifactId>vbdsm-ui</artifactId>
- <version>2.1.0</version>
- <packaging>pom</packaging>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <build>
- <finalName>${project.artifactId}</finalName>
- <plugins>
- <plugin>
- <!-- YUI Compressor Maven压缩插件 -->
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <version>1.3.0</version>
- <configuration>
- <!-- 读取js,css文件采用UTF-8编码 -->
- <encoding>UTF-8</encoding>
- <!-- 不显示js可能的错误 -->
- <jswarn>false</jswarn>
- <!-- 若存在已压缩的文件,会先对比源文件是否有改动 有改动便压缩,无改动就不压缩 -->
- <force>true</force>
- <!-- 在指定的列号后插入新行 -->
- <linebreakpos>-1</linebreakpos>
- <!-- 压缩之前先执行聚合文件操作 -->
- <preProcessAggregates>false</preProcessAggregates>
- <!-- 压缩后保存文件后缀 -->
- <!-- <suffix>.min</suffix> -->
- <nosuffix>true</nosuffix>
- <!-- 源目录,即需压缩的根目录 -->
- <sourceDirectory>${basedir}/src</sourceDirectory>
- <!-- 压缩js和css文件 -->
- <includes>
- <include>**/*.js</include>
- <include>**/*.css</include>
- </includes>
- <!-- 以下目录和文件不会被压缩 -->
- <excludes>
- <exclude>**/*min.js</exclude>
- <exclude>**/*min.css</exclude>
- <exclude>**/webPlot/**/*.*</exclude>
- <exclude>static/js/lib/**/*.*</exclude>
- <exclude>static/css/**/*.*</exclude>
- <exclude>static/fonts/**/*.*</exclude>
- <!-- 文件太大会导致JVM内存溢出,所以暂时手动压缩 -->
- <exclude>pc/explorer/css/explorer.layout.css</exclude>
- <!-- 排除 UEditor 语法检测 -->
- <exclude>**/ueditor/**/*.*</exclude>
- <exclude>pc/govnew/**/*.*</exclude>
- <exclude>pc/powergov/js/bigScreen.min.bak.js</exclude>
- </excludes>
- <!-- 压缩后输出文件目录 -->
- <outputDirectory>${basedir}/min</outputDirectory>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2.1</version>
- <configuration>
- <descriptors>
- <descriptor>distribution.xml</descriptor>
- </descriptors>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|