pom.xml 11 KB

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