pom.xml 13 KB

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