pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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. <groupId>com.uas.donate</groupId>
  7. <artifactId>donate-parent</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>donate-service</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. <activation>
  23. <activeByDefault>true</activeByDefault>
  24. </activation>
  25. </profile>
  26. <profile>
  27. <!-- 测试环境 -->
  28. <id>test</id>
  29. <properties>
  30. <profile>test</profile>
  31. <!-- static plugin -->
  32. <static-path>static</static-path>
  33. </properties>
  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>com.uas.account</groupId>
  49. <artifactId>account-common</artifactId>
  50. <version>0.0.1-SNAPSHOT</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>junit</groupId>
  54. <artifactId>junit</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.uas.platform</groupId>
  59. <artifactId>platform-core</artifactId>
  60. <exclusions>
  61. <exclusion>
  62. <groupId>org.slf4j</groupId>
  63. <artifactId>slf4j-log4j12</artifactId>
  64. </exclusion>
  65. </exclusions>
  66. </dependency>
  67. <!-- spring boot -->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-actuator</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-data-jpa</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-web</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-security</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework</groupId>
  86. <artifactId>spring-tx</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-starter-freemarker</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>mysql</groupId>
  94. <artifactId>mysql-connector-java</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.alibaba</groupId>
  98. <artifactId>druid</artifactId>
  99. <version>1.0.24</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.alibaba</groupId>
  103. <artifactId>fastjson</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.uas.dfs</groupId>
  107. <artifactId>dfs-api</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.github.sgroschupf</groupId>
  111. <artifactId>zkclient</artifactId>
  112. </dependency>
  113. <!-- 邮件 -->
  114. <dependency>
  115. <groupId>com.uas.message</groupId>
  116. <artifactId>message-mail-api</artifactId>
  117. </dependency>
  118. <!-- 消息-->
  119. <dependency>
  120. <groupId>com.uas.message</groupId>
  121. <artifactId>message-sms-api</artifactId>
  122. </dependency>
  123. <!-- dubbo -->
  124. <dependency>
  125. <groupId>com.alibaba</groupId>
  126. <artifactId>dubbo</artifactId>
  127. <exclusions>
  128. <exclusion>
  129. <groupId>javax.servlet</groupId>
  130. <artifactId>javax.servlet-api</artifactId>
  131. </exclusion>
  132. <exclusion>
  133. <groupId>org.apache.httpcomponents</groupId>
  134. <artifactId>httpcore</artifactId>
  135. </exclusion>
  136. </exclusions>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.caucho</groupId>
  140. <artifactId>hessian</artifactId>
  141. <version>4.0.38</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>commons-io</groupId>
  145. <artifactId>commons-io</artifactId>
  146. <version>2.4</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.hibernate</groupId>
  150. <artifactId>hibernate-core</artifactId>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.hibernate</groupId>
  154. <artifactId>hibernate-entitymanager</artifactId>
  155. <exclusions>
  156. <exclusion>
  157. <groupId>cglib</groupId>
  158. <artifactId>cglib</artifactId>
  159. </exclusion>
  160. <exclusion>
  161. <groupId>dom4j</groupId>
  162. <artifactId>dom4j</artifactId>
  163. </exclusion>
  164. </exclusions>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.alibaba</groupId>
  168. <artifactId>alipay-sdk</artifactId>
  169. <version>java20171027120314</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>commons-logging</groupId>
  173. <artifactId>commons-logging</artifactId>
  174. <version>1.2</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.github.binarywang</groupId>
  178. <artifactId>weixin-java-pay</artifactId>
  179. <version>2.8.6.BETA</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>com.github.binarywang</groupId>
  183. <artifactId>weixin-java-mp</artifactId>
  184. <version>2.8.6.BETA</version>
  185. </dependency>
  186. <!-- <dependency>
  187. <groupId>org.apache.commons</groupId>
  188. <artifactId>commons-lang3</artifactId>
  189. <version>3.5</version>
  190. </dependency>-->
  191. </dependencies>
  192. <build>
  193. <plugins>
  194. <!-- 在maven生命周期validate阶段生成timestamp -->
  195. <plugin>
  196. <groupId>org.codehaus.mojo</groupId>
  197. <artifactId>buildnumber-maven-plugin</artifactId>
  198. <version>1.3</version>
  199. <executions>
  200. <execution>
  201. <phase>validate</phase>
  202. <goals>
  203. <goal>create-timestamp</goal>
  204. </goals>
  205. </execution>
  206. </executions>
  207. <configuration>
  208. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  209. <items>
  210. <item>timestamp</item>
  211. </items>
  212. </configuration>
  213. </plugin>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-compiler-plugin</artifactId>
  217. <configuration>
  218. <encoding>${project.build.sourceEncoding}</encoding>
  219. <source>1.7</source>
  220. <target>1.7</target>
  221. </configuration>
  222. </plugin>
  223. <plugin>
  224. <artifactId>maven-resources-plugin</artifactId>
  225. <executions>
  226. <execution>
  227. <id>copy-resources</id>
  228. <phase>prepare-package</phase>
  229. <goals>
  230. <goal>copy-resources</goal>
  231. </goals>
  232. <configuration>
  233. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  234. <overwrite>false</overwrite>
  235. <resources>
  236. <resource>
  237. <directory>${basedir}/src/main/webapp</directory>
  238. </resource>
  239. </resources>
  240. </configuration>
  241. </execution>
  242. </executions>
  243. </plugin>
  244. <plugin>
  245. <groupId>com.uas.plugins</groupId>
  246. <artifactId>static-maven-plugin</artifactId>
  247. <version>0.0.2-SNAPSHOT</version>
  248. <!-- 静态资源分离 -->
  249. <executions>
  250. <execution>
  251. <id>default-static</id>
  252. <phase>prepare-package</phase>
  253. <configuration>
  254. <staticUrl>static</staticUrl>
  255. <webappDir>${project.build.directory}/minify</webappDir>
  256. <sourceDir>/</sourceDir>
  257. <targetDir>${project.build.directory}/statics</targetDir>
  258. <staticDir>/</staticDir>
  259. <sourceIncludes>
  260. <sourceInclude>resources/js/**/*.js</sourceInclude>
  261. <sourceInclude>WEB-INF/views/*.html</sourceInclude>
  262. </sourceIncludes>
  263. <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
  264. <versionSuffix>
  265. <suffix>?_v=${timestamp}</suffix>
  266. <exclude>**/lib/**/*</exclude>
  267. </versionSuffix>
  268. </configuration>
  269. <goals>
  270. <goal>static</goal>
  271. </goals>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-war-plugin</artifactId>
  278. <configuration>
  279. <webResources>
  280. <resource>
  281. <directory>${project.build.directory}/statics</directory>
  282. </resource>
  283. <resource>
  284. <directory>${project.build.directory}/minify</directory>
  285. </resource>
  286. </webResources>
  287. </configuration>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.springframework.boot</groupId>
  291. <artifactId>spring-boot-maven-plugin</artifactId>
  292. </plugin>
  293. </plugins>
  294. <pluginManagement>
  295. <plugins>
  296. <plugin>
  297. <groupId>org.eclipse.m2e</groupId>
  298. <artifactId>lifecycle-mapping</artifactId>
  299. <version>1.0.0</version>
  300. <configuration>
  301. <lifecycleMappingMetadata>
  302. <pluginExecutions>
  303. <pluginExecution>
  304. <pluginExecutionFilter>
  305. <groupId>
  306. org.codehaus.mojo
  307. </groupId>
  308. <artifactId>
  309. buildnumber-maven-plugin
  310. </artifactId>
  311. <versionRange>
  312. [1.3,)
  313. </versionRange>
  314. <goals>
  315. <goal>
  316. create-timestamp
  317. </goal>
  318. </goals>
  319. </pluginExecutionFilter>
  320. <action>
  321. <ignore></ignore>
  322. </action>
  323. </pluginExecution>
  324. </pluginExecutions>
  325. </lifecycleMappingMetadata>
  326. </configuration>
  327. </plugin>
  328. </plugins>
  329. </pluginManagement>
  330. </build>
  331. <distributionManagement>
  332. <!-- 发布release仓库 -->
  333. <repository>
  334. <id>platform-release</id>
  335. <name>platform-release</name>
  336. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url
  337. >
  338. </repository>
  339. <!-- 发布快照版本 -->
  340. <snapshotRepository>
  341. <id>platform-snapshots</id>
  342. <name>platform-snapshots</name>
  343. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url
  344. >
  345. </snapshotRepository>
  346. </distributionManagement>
  347. </project>