pom.xml 14 KB

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