pom.xml 13 KB

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