|
|
@@ -313,6 +313,32 @@
|
|
|
|
|
|
<build>
|
|
|
<plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
|
|
|
+ <artifactId>svn-revision-number-maven-plugin</artifactId>
|
|
|
+ <version>1.13</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>revision</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ <configuration>
|
|
|
+ <entries>
|
|
|
+ <entry>
|
|
|
+ <prefix>svn</prefix>
|
|
|
+ </entry>
|
|
|
+ </entries>
|
|
|
+ </configuration>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.tmatesoft.svnkit</groupId>
|
|
|
+ <artifactId>svnkit</artifactId>
|
|
|
+ <version>1.8.10</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
@@ -322,7 +348,109 @@
|
|
|
<target>1.7</target>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-resources</id>
|
|
|
+ <phase>prepare-package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>${project.build.directory}/minify</outputDirectory>
|
|
|
+ <overwrite>false</overwrite>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>${basedir}/src/main/webapp</directory>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.uas.plugins</groupId>
|
|
|
+ <artifactId>static-maven-plugin</artifactId>
|
|
|
+ <version>0.0.2-SNAPSHOT</version>
|
|
|
+ <!-- 静态资源分离 -->
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>default-static</id>
|
|
|
+ <phase>prepare-package</phase>
|
|
|
+ <configuration>
|
|
|
+ <webappDir>${project.build.directory}/minify</webappDir>
|
|
|
+ <sourceDir>/</sourceDir>
|
|
|
+ <targetDir>${project.build.directory}/statics</targetDir>
|
|
|
+ <staticDir>/</staticDir>
|
|
|
+ <sourceIncludes>
|
|
|
+ <sourceInclude>resources/js/**/*.js</sourceInclude>
|
|
|
+ <sourceInclude>resources/css/**/*.css</sourceInclude>
|
|
|
+ <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
|
|
|
+ </sourceIncludes>
|
|
|
+ <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
|
|
|
+ <versionSuffix>
|
|
|
+ <suffix>?_v=${svn.revision}</suffix>
|
|
|
+ <exclude>resources/lib/**/*</exclude>
|
|
|
+ </versionSuffix>
|
|
|
+ </configuration>
|
|
|
+ <goals>
|
|
|
+ <goal>static</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <webResources>
|
|
|
+ <resource>
|
|
|
+ <directory>${project.build.directory}/statics</directory>
|
|
|
+ </resource>
|
|
|
+ <resource>
|
|
|
+ <directory>${project.build.directory}/minify</directory>
|
|
|
+ </resource>
|
|
|
+ </webResources>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.eclipse.m2e</groupId>
|
|
|
+ <artifactId>lifecycle-mapping</artifactId>
|
|
|
+ <version>1.0.0</version>
|
|
|
+ <configuration>
|
|
|
+ <lifecycleMappingMetadata>
|
|
|
+ <pluginExecutions>
|
|
|
+ <pluginExecution>
|
|
|
+ <pluginExecutionFilter>
|
|
|
+ <groupId>
|
|
|
+ com.google.code.maven-svn-revision-number-plugin
|
|
|
+ </groupId>
|
|
|
+ <artifactId>
|
|
|
+ svn-revision-number-maven-plugin
|
|
|
+ </artifactId>
|
|
|
+ <versionRange>
|
|
|
+ [1.13,)
|
|
|
+ </versionRange>
|
|
|
+ <goals>
|
|
|
+ <goal>
|
|
|
+ revision
|
|
|
+ </goal>
|
|
|
+ </goals>
|
|
|
+ </pluginExecutionFilter>
|
|
|
+ <action>
|
|
|
+ <ignore></ignore>
|
|
|
+ </action>
|
|
|
+ </pluginExecution>
|
|
|
+ </pluginExecutions>
|
|
|
+ </lifecycleMappingMetadata>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
</build>
|
|
|
|
|
|
<distributionManagement>
|