pom.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.uas.reservation</groupId>
  8. <artifactId>reservation-parent</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>reservation-server</artifactId>
  12. <packaging>war</packaging>
  13. <dependencies>
  14. <dependency>
  15. <groupId>junit</groupId>
  16. <artifactId>junit</artifactId>
  17. <scope>test</scope>
  18. </dependency>
  19. <!-- spring boot -->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-actuator</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-data-jpa</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-security</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-configuration-processor</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-tx</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>mysql</groupId>
  46. <artifactId>mysql-connector-java</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.alibaba</groupId>
  50. <artifactId>druid</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.alibaba</groupId>
  54. <artifactId>fastjson</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.uas.reservation</groupId>
  58. <artifactId>reservation-common</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.uas.ps</groupId>
  62. <artifactId>ps-httplog</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.uas.ps</groupId>
  66. <artifactId>ps-core</artifactId>
  67. </dependency>
  68. <!-- dubbo -->
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>dubbo</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.github.sgroschupf</groupId>
  75. <artifactId>zkclient</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.uas.dfs</groupId>
  79. <artifactId>dfs-api</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.caucho</groupId>
  83. <artifactId>hessian</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.uas.account</groupId>
  87. <artifactId>sso-integration</artifactId>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <plugins>
  92. <!-- 在maven生命周期validate阶段生成timestamp -->
  93. <plugin>
  94. <groupId>org.codehaus.mojo</groupId>
  95. <artifactId>buildnumber-maven-plugin</artifactId>
  96. <version>1.3</version>
  97. <executions>
  98. <execution>
  99. <phase>validate</phase>
  100. <goals>
  101. <goal>create-timestamp</goal>
  102. </goals>
  103. </execution>
  104. </executions>
  105. <configuration>
  106. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  107. <items>
  108. <item>timestamp</item>
  109. </items>
  110. </configuration>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-compiler-plugin</artifactId>
  115. <configuration>
  116. <encoding>${project.build.sourceEncoding}</encoding>
  117. <source>1.7</source>
  118. <target>1.7</target>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <artifactId>maven-resources-plugin</artifactId>
  123. <executions>
  124. <execution>
  125. <id>copy-resources</id>
  126. <phase>prepare-package</phase>
  127. <goals>
  128. <goal>copy-resources</goal>
  129. </goals>
  130. <configuration>
  131. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  132. <overwrite>false</overwrite>
  133. <resources>
  134. <resource>
  135. <directory>${basedir}/src/main/webapp</directory>
  136. </resource>
  137. </resources>
  138. </configuration>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. <plugin>
  143. <groupId>com.uas.plugins</groupId>
  144. <artifactId>static-maven-plugin</artifactId>
  145. <version>0.0.2-SNAPSHOT</version>
  146. <!-- 静态资源分离 -->
  147. <executions>
  148. <execution>
  149. <id>default-static</id>
  150. <phase>prepare-package</phase>
  151. <configuration>
  152. <staticUrl>static</staticUrl>
  153. <webappDir>${project.build.directory}/minify</webappDir>
  154. <sourceDir>/</sourceDir>
  155. <targetDir>${project.build.directory}/statics</targetDir>
  156. <staticDir>/</staticDir>
  157. <sourceIncludes>
  158. <sourceInclude>resources/js/**/*.js</sourceInclude>
  159. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  160. </sourceIncludes>
  161. <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
  162. <versionSuffix>
  163. <suffix>?_v=${timestamp}</suffix>
  164. <exclude>**/lib/**/*</exclude>
  165. </versionSuffix>
  166. </configuration>
  167. <goals>
  168. <goal>static</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-war-plugin</artifactId>
  176. <configuration>
  177. <webResources>
  178. <resource>
  179. <directory>${project.build.directory}/statics</directory>
  180. </resource>
  181. <resource>
  182. <directory>${project.build.directory}/minify</directory>
  183. </resource>
  184. </webResources>
  185. </configuration>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-maven-plugin</artifactId>
  190. </plugin>
  191. </plugins>
  192. <pluginManagement>
  193. <plugins>
  194. <plugin>
  195. <groupId>org.eclipse.m2e</groupId>
  196. <artifactId>lifecycle-mapping</artifactId>
  197. <version>1.0.0</version>
  198. <configuration>
  199. <lifecycleMappingMetadata>
  200. <pluginExecutions>
  201. <pluginExecution>
  202. <pluginExecutionFilter>
  203. <groupId>
  204. org.codehaus.mojo
  205. </groupId>
  206. <artifactId>
  207. buildnumber-maven-plugin
  208. </artifactId>
  209. <versionRange>
  210. [1.3,)
  211. </versionRange>
  212. <goals>
  213. <goal>
  214. create-timestamp
  215. </goal>
  216. </goals>
  217. </pluginExecutionFilter>
  218. <action>
  219. <ignore></ignore>
  220. </action>
  221. </pluginExecution>
  222. </pluginExecutions>
  223. </lifecycleMappingMetadata>
  224. </configuration>
  225. </plugin>
  226. </plugins>
  227. </pluginManagement>
  228. </build>
  229. </project>