pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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>finance-parent</artifactId>
  7. <groupId>com.uas.finance</groupId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>finance-service</artifactId>
  12. <packaging>war</packaging>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.uas.platform</groupId>
  16. <artifactId>platform-core</artifactId>
  17. <exclusions>
  18. <exclusion>
  19. <groupId>*</groupId>
  20. <artifactId>*</artifactId>
  21. </exclusion>
  22. </exclusions>
  23. </dependency>
  24. <dependency>
  25. <groupId>junit</groupId>
  26. <artifactId>junit</artifactId>
  27. <scope>test</scope>
  28. </dependency>
  29. <dependency>
  30. <groupId>ant</groupId>
  31. <artifactId>ant</artifactId>
  32. <version>1.6.5</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.codehaus.jackson</groupId>
  36. <artifactId>jackson-core-asl</artifactId>
  37. <version>1.9.13</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.codehaus.jackson</groupId>
  41. <artifactId>jackson-mapper-asl</artifactId>
  42. <version>1.9.13</version>
  43. </dependency>
  44. <!-- spring boot -->
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-actuator</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-data-jpa</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-web</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-security</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework</groupId>
  63. <artifactId>spring-tx</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>mysql</groupId>
  67. <artifactId>mysql-connector-java</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>druid</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.alibaba</groupId>
  75. <artifactId>fastjson</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.uas.account</groupId>
  79. <artifactId>sso-core</artifactId>
  80. <version>0.0.1-SNAPSHOT</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.uas.sso</groupId>
  84. <artifactId>sso-common</artifactId>
  85. <version>0.0.1-SNAPSHOT</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.github.sgroschupf</groupId>
  89. <artifactId>zkclient</artifactId>
  90. <version>0.1</version>
  91. <exclusions>
  92. <exclusion>
  93. <artifactId>slf4j-log4j12</artifactId>
  94. <groupId>org.slf4j</groupId>
  95. </exclusion>
  96. <exclusion>
  97. <artifactId>log4j</artifactId>
  98. <groupId>log4j</groupId>
  99. </exclusion>
  100. </exclusions>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.zookeeper</groupId>
  104. <artifactId>zookeeper</artifactId>
  105. <version>3.4.6</version>
  106. <exclusions>
  107. <exclusion>
  108. <artifactId>slf4j-log4j12</artifactId>
  109. <groupId>org.slf4j</groupId>
  110. </exclusion>
  111. </exclusions>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.apache.httpcomponents</groupId>
  115. <artifactId>httpmime</artifactId>
  116. <version>4.5.2</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>commons-io</groupId>
  120. <artifactId>commons-io</artifactId>
  121. <version>2.4</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.alibaba</groupId>
  125. <artifactId>dubbo</artifactId>
  126. <version>2.8.4</version>
  127. <exclusions>
  128. <exclusion>
  129. <artifactId>log4j</artifactId>
  130. <groupId>log4j</groupId>
  131. </exclusion>
  132. </exclusions>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.caucho</groupId>
  136. <artifactId>hessian</artifactId>
  137. <version>4.0.38</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.uas.dfs</groupId>
  141. <artifactId>dfs-api</artifactId>
  142. <version>0.0.2</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.apache.poi</groupId>
  146. <artifactId>poi</artifactId>
  147. <version>3.9</version>
  148. </dependency>
  149. </dependencies>
  150. <build>
  151. <plugins>
  152. <!-- 在maven生命周期validate阶段生成timestamp -->
  153. <plugin>
  154. <groupId>org.codehaus.mojo</groupId>
  155. <artifactId>buildnumber-maven-plugin</artifactId>
  156. <version>1.3</version>
  157. <executions>
  158. <execution>
  159. <phase>validate</phase>
  160. <goals>
  161. <goal>create-timestamp</goal>
  162. </goals>
  163. </execution>
  164. </executions>
  165. <configuration>
  166. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  167. <items>
  168. <item>timestamp</item>
  169. </items>
  170. </configuration>
  171. </plugin>
  172. <plugin>
  173. <groupId>org.apache.maven.plugins</groupId>
  174. <artifactId>maven-compiler-plugin</artifactId>
  175. <configuration>
  176. <encoding>${project.build.sourceEncoding}</encoding>
  177. <source>1.7</source>
  178. <target>1.7</target>
  179. </configuration>
  180. </plugin>
  181. <plugin>
  182. <artifactId>maven-resources-plugin</artifactId>
  183. <executions>
  184. <execution>
  185. <id>copy-resources</id>
  186. <phase>prepare-package</phase>
  187. <goals>
  188. <goal>copy-resources</goal>
  189. </goals>
  190. <configuration>
  191. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  192. <overwrite>false</overwrite>
  193. <resources>
  194. <resource>
  195. <directory>${basedir}/src/main/webapp</directory>
  196. </resource>
  197. </resources>
  198. </configuration>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. <!-- <plugin>
  203. <groupId>com.uas.plugins</groupId>
  204. <artifactId>static-maven-plugin</artifactId>
  205. <version>0.0.2-SNAPSHOT</version>
  206. &lt;!&ndash; 静态资源分离 &ndash;&gt;
  207. <executions>
  208. <execution>
  209. <id>default-static</id>
  210. <phase>prepare-package</phase>
  211. <configuration>
  212. <staticUrl>static</staticUrl>
  213. <webappDir>${project.build.directory}/minify</webappDir>
  214. <sourceDir>/</sourceDir>
  215. <targetDir>${project.build.directory}/statics</targetDir>
  216. <staticDir>/</staticDir>
  217. <sourceIncludes>
  218. <sourceInclude>resources/js/**/*.js</sourceInclude>
  219. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  220. </sourceIncludes>
  221. &lt;!&ndash; http://static.ubtoc.com/css/index.css?_v=1450321871828 &ndash;&gt;
  222. <versionSuffix>
  223. <suffix>?_v=${timestamp}</suffix>
  224. <exclude>**/lib/**/*</exclude>
  225. </versionSuffix>
  226. </configuration>
  227. <goals>
  228. <goal>static</goal>
  229. </goals>
  230. </execution>
  231. </executions>
  232. </plugin>-->
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-war-plugin</artifactId>
  236. <!--<configuration>
  237. <webResources>
  238. <resource>
  239. <directory>${project.build.directory}/statics</directory>
  240. </resource>
  241. <resource>
  242. <directory>${project.build.directory}/minify</directory>
  243. </resource>
  244. </webResources>
  245. </configuration>-->
  246. </plugin>
  247. <plugin>
  248. <groupId>org.springframework.boot</groupId>
  249. <artifactId>spring-boot-maven-plugin</artifactId>
  250. </plugin>
  251. </plugins>
  252. <pluginManagement>
  253. <plugins>
  254. <plugin>
  255. <groupId>org.eclipse.m2e</groupId>
  256. <artifactId>lifecycle-mapping</artifactId>
  257. <version>1.0.0</version>
  258. <configuration>
  259. <lifecycleMappingMetadata>
  260. <pluginExecutions>
  261. <pluginExecution>
  262. <pluginExecutionFilter>
  263. <groupId>
  264. org.codehaus.mojo
  265. </groupId>
  266. <artifactId>
  267. buildnumber-maven-plugin
  268. </artifactId>
  269. <versionRange>
  270. [1.3,)
  271. </versionRange>
  272. <goals>
  273. <goal>
  274. create-timestamp
  275. </goal>
  276. </goals>
  277. </pluginExecutionFilter>
  278. <action>
  279. <ignore></ignore>
  280. </action>
  281. </pluginExecution>
  282. </pluginExecutions>
  283. </lifecycleMappingMetadata>
  284. </configuration>
  285. </plugin>
  286. </plugins>
  287. </pluginManagement>
  288. </build>
  289. </project>