pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>donate-parent</artifactId>
  7. <groupId>com.uas.donate</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>donate-console</artifactId>
  12. <packaging>war</packaging>
  13. <profiles>
  14. <profile>
  15. <!-- 开发环境 -->
  16. <id>dev</id>
  17. <properties>
  18. <profile>dev</profile>
  19. <!-- static plugin -->
  20. <static-path>static</static-path>
  21. </properties>
  22. </profile>
  23. <profile>
  24. <!-- 测试环境 -->
  25. <id>test</id>
  26. <properties>
  27. <profile>test</profile>
  28. <!-- static plugin -->
  29. <static-path>static</static-path>
  30. </properties>
  31. <activation>
  32. <activeByDefault>true</activeByDefault>
  33. </activation>
  34. </profile>
  35. <profile>
  36. <!-- 生产环境 -->
  37. <id>prod</id>
  38. <properties>
  39. <profile>prod</profile>
  40. <!-- static plugin -->
  41. <static-path>http://static.ubtob.com</static-path>
  42. </properties>
  43. <!-- 默认 -->
  44. </profile>
  45. </profiles>
  46. <dependencies>
  47. <dependency>
  48. <groupId>junit</groupId>
  49. <artifactId>junit</artifactId>
  50. <scope>test</scope>
  51. </dependency>
  52. <!-- spring boot -->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-actuator</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-data-jpa</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-web</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-security</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework</groupId>
  71. <artifactId>spring-tx</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>mysql</groupId>
  75. <artifactId>mysql-connector-java</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.alibaba</groupId>
  79. <artifactId>druid</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.alibaba</groupId>
  83. <artifactId>fastjson</artifactId>
  84. </dependency>
  85. </dependencies>
  86. <build>
  87. <plugins>
  88. <plugin>
  89. <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
  90. <artifactId>svn-revision-number-maven-plugin</artifactId>
  91. <version>1.13</version>
  92. <executions>
  93. <execution>
  94. <goals>
  95. <goal>revision</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. <configuration>
  100. <entries>
  101. <entry>
  102. <prefix>svn</prefix>
  103. </entry>
  104. </entries>
  105. </configuration>
  106. <dependencies>
  107. <dependency>
  108. <groupId>org.tmatesoft.svnkit</groupId>
  109. <artifactId>svnkit</artifactId>
  110. <version>1.8.10</version>
  111. </dependency>
  112. </dependencies>
  113. </plugin>
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-compiler-plugin</artifactId>
  117. <configuration>
  118. <encoding>${project.build.sourceEncoding}</encoding>
  119. <source>1.7</source>
  120. <target>1.7</target>
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <artifactId>maven-resources-plugin</artifactId>
  125. <executions>
  126. <execution>
  127. <id>copy-resources</id>
  128. <phase>prepare-package</phase>
  129. <goals>
  130. <goal>copy-resources</goal>
  131. </goals>
  132. <configuration>
  133. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  134. <overwrite>false</overwrite>
  135. <resources>
  136. <resource>
  137. <directory>${basedir}/src/main/webapp</directory>
  138. </resource>
  139. </resources>
  140. </configuration>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <plugin>
  145. <groupId>com.uas.plugins</groupId>
  146. <artifactId>static-maven-plugin</artifactId>
  147. <version>0.0.2-SNAPSHOT</version>
  148. <!-- 静态资源分离 -->
  149. <executions>
  150. <execution>
  151. <id>default-static</id>
  152. <phase>prepare-package</phase>
  153. <configuration>
  154. <webappDir>${project.build.directory}/minify</webappDir>
  155. <sourceDir>/</sourceDir>
  156. <targetDir>${project.build.directory}/statics</targetDir>
  157. <staticDir>/</staticDir>
  158. <sourceIncludes>
  159. <sourceInclude>resources/js/**/*.js</sourceInclude>
  160. <sourceInclude>resources/css/**/*.css</sourceInclude>
  161. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  162. </sourceIncludes>
  163. <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
  164. <versionSuffix>
  165. <suffix>?_v=${svn.revision}</suffix>
  166. <exclude>resources/lib/**/*</exclude>
  167. </versionSuffix>
  168. </configuration>
  169. <goals>
  170. <goal>static</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-maven-plugin</artifactId>
  178. </plugin>
  179. </plugins>
  180. <pluginManagement>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.eclipse.m2e</groupId>
  184. <artifactId>lifecycle-mapping</artifactId>
  185. <version>1.0.0</version>
  186. <configuration>
  187. <lifecycleMappingMetadata>
  188. <pluginExecutions>
  189. <pluginExecution>
  190. <pluginExecutionFilter>
  191. <groupId>
  192. com.google.code.maven-svn-revision-number-plugin
  193. </groupId>
  194. <artifactId>
  195. svn-revision-number-maven-plugin
  196. </artifactId>
  197. <versionRange>
  198. [1.13,)
  199. </versionRange>
  200. <goals>
  201. <goal>
  202. revision
  203. </goal>
  204. </goals>
  205. </pluginExecutionFilter>
  206. <action>
  207. <ignore></ignore>
  208. </action>
  209. </pluginExecution>
  210. </pluginExecutions>
  211. </lifecycleMappingMetadata>
  212. </configuration>
  213. </plugin>
  214. </plugins>
  215. </pluginManagement>
  216. </build>
  217. </project>