pom.xml 14 KB

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