| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <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.0.0</version>
- <packaging>pom</packaging>
- <distributionManagement>
- <repository>
- <id>vbpdsm-releases</id>
- <name>Internal Releases</name>
- <url>http://shvber.com:8881/repository/vbpdsm-releases</url>
- </repository>
- <snapshotRepository>
- <id>vbpdsm-snapshots</id>
- <name>Internal Snapshots</name>
- <url>http://shvber.com:8881/repository/vbpdsm-snapshots</url>
- </snapshotRepository>
- </distributionManagement>
- <repositories>
- <repository>
- <id>vbpdsm</id>
- <name>vbpdsm Repository</name>
- <url>http://shvber.com:8881/repository/vbpdsm/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <build>
- <finalName>${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>
|