pom.xml 9.2 KB

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