pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <artifactId>platform-b2c</artifactId>
  5. <packaging>war</packaging>
  6. <name>platform-b2c Maven Webapp</name>
  7. <url>http://maven.apache.org</url>
  8. <parent>
  9. <groupId>com.uas.platform</groupId>
  10. <artifactId>platform</artifactId>
  11. <version>0.0.1-SNAPSHOT</version>
  12. </parent>
  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. <!-- 默认 -->
  23. <activation>
  24. <activeByDefault>true</activeByDefault>
  25. </activation>
  26. </profile>
  27. <profile>
  28. <!-- 测试环境 -->
  29. <id>test</id>
  30. <properties>
  31. <profile>test</profile>
  32. <!-- static plugin -->
  33. <static-path>static</static-path>
  34. </properties>
  35. </profile>
  36. <profile>
  37. <!-- 生产环境 -->
  38. <id>ptest</id>
  39. <properties>
  40. <profile>ptest</profile>
  41. <!-- static plugin -->
  42. <static-path>static</static-path>
  43. </properties>
  44. </profile>
  45. <profile>
  46. <!-- 预部署环境 -->
  47. <id>pre</id>
  48. <properties>
  49. <profile>pre</profile>
  50. <!-- static plugin -->
  51. <static-path>static</static-path>
  52. </properties>
  53. </profile>
  54. <profile>
  55. <!-- 生产环境 -->
  56. <id>txcloud</id>
  57. <properties>
  58. <profile>txcloud</profile>
  59. <!-- static plugin -->
  60. <static-path>static</static-path>
  61. </properties>
  62. </profile>
  63. </profiles>
  64. <properties>
  65. <spring.version>4.2.8.RELEASE</spring.version>
  66. </properties>
  67. <dependencies>
  68. <dependency>
  69. <groupId>javax.servlet</groupId>
  70. <artifactId>javax.servlet-api</artifactId>
  71. <version>3.0.1</version>
  72. <scope>test</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>javax.servlet</groupId>
  76. <artifactId>servlet-api</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>junit</groupId>
  80. <artifactId>junit</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.uas.platform</groupId>
  85. <artifactId>platform-core</artifactId>
  86. <exclusions>
  87. <exclusion>
  88. <groupId>org.slf4j</groupId>
  89. <artifactId>slf4j-log4j12</artifactId>
  90. </exclusion>
  91. </exclusions>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.uas.api</groupId>
  95. <artifactId>b2c-erp-api</artifactId>
  96. <exclusions>
  97. <exclusion>
  98. <groupId>log4j</groupId>
  99. <artifactId>log4j</artifactId>
  100. </exclusion>
  101. </exclusions>
  102. <version>0.0.5-SNAPSHOT</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.caucho</groupId>
  106. <artifactId>hessian</artifactId>
  107. </dependency>
  108. <!-- spring -->
  109. <dependency>
  110. <groupId>org.springframework</groupId>
  111. <artifactId>spring-core</artifactId>
  112. <exclusions>
  113. <exclusion>
  114. <groupId>commons-logging</groupId>
  115. <artifactId>commons-logging</artifactId>
  116. </exclusion>
  117. </exclusions>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework</groupId>
  121. <artifactId>spring-context</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.springframework</groupId>
  125. <artifactId>spring-context-support</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework</groupId>
  129. <artifactId>spring-webmvc</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.springframework</groupId>
  133. <artifactId>spring-jdbc</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.springframework</groupId>
  137. <artifactId>spring-tx</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.springframework</groupId>
  141. <artifactId>spring-aop</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.springframework</groupId>
  145. <artifactId>spring-aspects</artifactId>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.springframework</groupId>
  149. <artifactId>spring-test</artifactId>
  150. <version>4.1.6.RELEASE</version>
  151. </dependency>
  152. <!-- jpa -->
  153. <dependency>
  154. <groupId>org.springframework.data</groupId>
  155. <artifactId>spring-data-jpa</artifactId>
  156. </dependency>
  157. <!-- mongodb spring -->
  158. <dependency>
  159. <groupId>org.springframework.data</groupId>
  160. <artifactId>spring-data-mongodb</artifactId>
  161. <version>1.5.2.RELEASE</version>
  162. </dependency>
  163. <!-- xstream -->
  164. <dependency>
  165. <groupId>com.thoughtworks.xstream</groupId>
  166. <artifactId>xstream</artifactId>
  167. <version>1.3.1</version>
  168. </dependency>
  169. <!-- fileupload -->
  170. <dependency>
  171. <groupId>commons-fileupload</groupId>
  172. <artifactId>commons-fileupload</artifactId>
  173. <version>1.3.1</version>
  174. </dependency>
  175. <!-- hibernate -->
  176. <dependency>
  177. <groupId>org.hibernate</groupId>
  178. <artifactId>hibernate-core</artifactId>
  179. <exclusions>
  180. <exclusion>
  181. <groupId>xml-apis</groupId>
  182. <artifactId>xml-apis</artifactId>
  183. </exclusion>
  184. </exclusions>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.hibernate</groupId>
  188. <artifactId>hibernate-entitymanager</artifactId>
  189. <exclusions>
  190. <exclusion>
  191. <groupId>cglib</groupId>
  192. <artifactId>cglib</artifactId>
  193. </exclusion>
  194. <exclusion>
  195. <groupId>dom4j</groupId>
  196. <artifactId>dom4j</artifactId>
  197. </exclusion>
  198. </exclusions>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.hibernate.javax.persistence</groupId>
  202. <artifactId>hibernate-jpa-2.1-api</artifactId>
  203. </dependency>
  204. <dependency>
  205. <groupId>commons-collections</groupId>
  206. <artifactId>commons-collections</artifactId>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.hibernate</groupId>
  210. <artifactId>hibernate-validator</artifactId>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.aspectj</groupId>
  214. <artifactId>aspectjrt</artifactId>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.aspectj</groupId>
  218. <artifactId>aspectjweaver</artifactId>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.apache.commons</groupId>
  222. <artifactId>commons-lang3</artifactId>
  223. </dependency>
  224. <dependency>
  225. <groupId>javax.validation</groupId>
  226. <artifactId>validation-api</artifactId>
  227. </dependency>
  228. <dependency>
  229. <groupId>javax.transaction</groupId>
  230. <artifactId>jta</artifactId>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.hibernate</groupId>
  234. <artifactId>hibernate-ehcache</artifactId>
  235. </dependency>
  236. <dependency>
  237. <groupId>com.github.debop</groupId>
  238. <artifactId>hibernate-redis</artifactId>
  239. <version>2.3.1</version>
  240. </dependency>
  241. <!-- jdbc -->
  242. <dependency>
  243. <groupId>com.oracle</groupId>
  244. <artifactId>ojdbc6</artifactId>
  245. </dependency>
  246. <!-- mysql -->
  247. <dependency>
  248. <groupId>mysql</groupId>
  249. <artifactId>mysql-connector-java</artifactId>
  250. <version>5.1.21</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.springframework</groupId>
  254. <artifactId>spring-orm</artifactId>
  255. </dependency>
  256. <dependency>
  257. <groupId>commons-pool</groupId>
  258. <artifactId>commons-pool</artifactId>
  259. </dependency>
  260. <dependency>
  261. <groupId>commons-dbcp</groupId>
  262. <artifactId>commons-dbcp</artifactId>
  263. </dependency>
  264. <!-- redis -->
  265. <dependency>
  266. <groupId>redis.clients</groupId>
  267. <artifactId>jedis</artifactId>
  268. <version>2.7.3</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.springframework.data</groupId>
  272. <artifactId>spring-data-redis</artifactId>
  273. <version>1.6.0.RELEASE</version>
  274. </dependency>
  275. <!-- spring mobile -->
  276. <dependency>
  277. <groupId>org.springframework.mobile</groupId>
  278. <artifactId>spring-mobile-device</artifactId>
  279. </dependency>
  280. <!--json-lib -->
  281. <dependency>
  282. <groupId>net.sf.json-lib</groupId>
  283. <artifactId>json-lib</artifactId>
  284. <classifier>jdk15</classifier>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.codehaus.jackson</groupId>
  288. <artifactId>jackson-core-asl</artifactId>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.codehaus.jackson</groupId>
  292. <artifactId>jackson-mapper-asl</artifactId>
  293. </dependency>
  294. <dependency>
  295. <groupId>com.fasterxml.jackson.core</groupId>
  296. <artifactId>jackson-core</artifactId>
  297. <version>2.9.6</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>com.fasterxml.jackson.core</groupId>
  301. <artifactId>jackson-databind</artifactId>
  302. <version>2.9.6</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>com.fasterxml.jackson.core</groupId>
  306. <artifactId>jackson-annotations</artifactId>
  307. <version>2.9.6</version>
  308. </dependency>
  309. <dependency>
  310. <groupId>com.alibaba</groupId>
  311. <artifactId>fastjson</artifactId>
  312. </dependency>
  313. <!-- velocity -->
  314. <dependency>
  315. <groupId>org.apache.velocity</groupId>
  316. <artifactId>velocity</artifactId>
  317. </dependency>
  318. <!-- mail -->
  319. <dependency>
  320. <groupId>javax.mail</groupId>
  321. <artifactId>mail</artifactId>
  322. </dependency>
  323. <!-- jxls -->
  324. <dependency>
  325. <groupId>net.sf.jxls</groupId>
  326. <artifactId>jxls-core</artifactId>
  327. <version>1.0.4</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>net.sf.jxls</groupId>
  331. <artifactId>jxls-reader</artifactId>
  332. <version>1.0.4</version>
  333. </dependency>
  334. <!-- poi -->
  335. <dependency>
  336. <groupId>org.apache.poi</groupId>
  337. <artifactId>poi</artifactId>
  338. <version>3.9</version>
  339. </dependency>
  340. <dependency>
  341. <groupId>org.apache.poi</groupId>
  342. <artifactId>poi-ooxml</artifactId>
  343. <version>3.9</version>
  344. </dependency>
  345. <!-- BeeCloud支付集成SDK -->
  346. <dependency>
  347. <groupId>cn.beecloud</groupId>
  348. <artifactId>beecloud-java-sdk</artifactId>
  349. <version>3.1.0</version>
  350. <exclusions>
  351. <exclusion>
  352. <groupId>log4j</groupId>
  353. <artifactId>log4j</artifactId>
  354. </exclusion>
  355. </exclusions>
  356. </dependency>
  357. <dependency>
  358. <groupId>jaxen</groupId>
  359. <artifactId>jaxen</artifactId>
  360. <version>1.1.6</version>
  361. <exclusions>
  362. <exclusion>
  363. <groupId>dom4j</groupId>
  364. <artifactId>dom4j</artifactId>
  365. </exclusion>
  366. <exclusion>
  367. <groupId>xml-apis</groupId>
  368. <artifactId>xml-apis</artifactId>
  369. </exclusion>
  370. <exclusion>
  371. <groupId>xerces</groupId>
  372. <artifactId>xmlParserAPIs</artifactId>
  373. </exclusion>
  374. <exclusion>
  375. <groupId>xerces</groupId>
  376. <artifactId>xercesImpl</artifactId>
  377. </exclusion>
  378. <exclusion>
  379. <groupId>xerces</groupId>
  380. <artifactId>xercesImpl</artifactId>
  381. </exclusion>
  382. <exclusion>
  383. <groupId>com.ibm.icu</groupId>
  384. <artifactId>icu4j</artifactId>
  385. </exclusion>
  386. </exclusions>
  387. </dependency>
  388. <!-- kafka消息中间件 -->
  389. <dependency>
  390. <groupId>org.springframework.kafka</groupId>
  391. <artifactId>spring-kafka</artifactId>
  392. <version>1.2.2.RELEASE</version>
  393. </dependency>
  394. <!-- service on dubbo -->
  395. <dependency>
  396. <groupId>com.uas.dfs</groupId>
  397. <artifactId>dfs-api</artifactId>
  398. </dependency>
  399. <!-- search -->
  400. <dependency>
  401. <groupId>com.uas.search</groupId>
  402. <artifactId>search-api</artifactId>
  403. </dependency>
  404. <dependency>
  405. <groupId>com.uas.message</groupId>
  406. <artifactId>message-mail-api</artifactId>
  407. </dependency>
  408. <dependency>
  409. <groupId>com.uas.message</groupId>
  410. <artifactId>message-sms-api</artifactId>
  411. </dependency>
  412. <dependency>
  413. <groupId>com.uas.account</groupId>
  414. <artifactId>account-common</artifactId>
  415. <version>0.0.1-SNAPSHOT</version>
  416. </dependency>
  417. <dependency>
  418. <groupId>com.uas.sso</groupId>
  419. <artifactId>sso-common</artifactId>
  420. <version>0.0.1-SNAPSHOT</version>
  421. <exclusions>
  422. <exclusion>
  423. <artifactId>tomcat-embed-core</artifactId>
  424. <groupId>org.apache.tomcat.embed</groupId>
  425. </exclusion>
  426. </exclusions>
  427. </dependency>
  428. <!-- security -->
  429. <dependency>
  430. <groupId>org.springframework.security</groupId>
  431. <artifactId>spring-security-core</artifactId>
  432. </dependency>
  433. <dependency>
  434. <groupId>org.springframework.security</groupId>
  435. <artifactId>spring-security-config</artifactId>
  436. </dependency>
  437. <dependency>
  438. <groupId>org.springframework.security</groupId>
  439. <artifactId>spring-security-web</artifactId>
  440. </dependency>
  441. <!-- swagger-springmvc -->
  442. <dependency>
  443. <groupId>com.mangofactory</groupId>
  444. <artifactId>swagger-springmvc</artifactId>
  445. <version>1.0.2</version>
  446. </dependency>
  447. <dependency>
  448. <groupId>com.mangofactory</groupId>
  449. <artifactId>swagger-models</artifactId>
  450. <version>1.0.2</version>
  451. </dependency>
  452. <dependency>
  453. <groupId>com.wordnik</groupId>
  454. <artifactId>swagger-annotations</artifactId>
  455. <version>1.3.11</version>
  456. </dependency>
  457. <!-- swagger-springmvc dependencies -->
  458. <dependency>
  459. <groupId>com.google.guava</groupId>
  460. <artifactId>guava</artifactId>
  461. <version>15.0</version>
  462. </dependency>
  463. <dependency>
  464. <groupId>com.fasterxml</groupId>
  465. <artifactId>classmate</artifactId>
  466. <version>1.1.0</version>
  467. </dependency>
  468. <dependency>
  469. <groupId>javax.servlet</groupId>
  470. <artifactId>servlet-api</artifactId>
  471. </dependency>
  472. <dependency>
  473. <groupId>com.uas.ps</groupId>
  474. <artifactId>ps-core</artifactId>
  475. <version>0.0.1-SNAPSHOT</version>
  476. </dependency>
  477. <dependency>
  478. <groupId>com.uas.ps</groupId>
  479. <artifactId>ps-entity</artifactId>
  480. <version>0.0.1-SNAPSHOT</version>
  481. </dependency>
  482. <dependency>
  483. <groupId>com.uas.ps</groupId>
  484. <artifactId>ps-entity</artifactId>
  485. <version>0.0.1-SNAPSHOT</version>
  486. </dependency>
  487. <dependency>
  488. <groupId>net.sourceforge.pinyin4j</groupId>
  489. <artifactId>pinyin4j</artifactId>
  490. <version>1.1.0</version>
  491. </dependency>
  492. <!--Hutool POI工具类(对MS Office操作)-->
  493. <!--<dependency>
  494. <groupId>org.apache.poi</groupId>
  495. <artifactId>poi-ooxml</artifactId>
  496. <version>3.17</version>
  497. </dependency>-->
  498. <dependency>
  499. <groupId>com.xiaoleilu</groupId>
  500. <artifactId>hutool-poi</artifactId>
  501. <version>3.2.2</version>
  502. <exclusions>
  503. <exclusion>
  504. <groupId>org.apache.poi</groupId>
  505. <artifactId>poi-ooxml</artifactId>
  506. </exclusion>
  507. </exclusions>
  508. </dependency>
  509. <dependency>
  510. <groupId>io.minio</groupId>
  511. <artifactId>minio</artifactId>
  512. <version>3.0.6</version>
  513. </dependency>
  514. </dependencies>
  515. <build>
  516. <finalName>platform-b2c</finalName>
  517. <!-- 受profile影响的目录 -->
  518. <resources>
  519. <resource>
  520. <directory>${basedir}/src/main/resources</directory>
  521. <filtering>true</filtering>
  522. <excludes>
  523. <exclude>**/*.xls</exclude>
  524. <exclude>**/*.xlsx</exclude>
  525. </excludes>
  526. </resource>
  527. <!-- xls文件不能filter处理,需区分出来 -->
  528. <resource>
  529. <directory>${basedir}/src/main/resources</directory>
  530. <filtering>false</filtering>
  531. <includes>
  532. <include>**/*.xls</include>
  533. <include>**/*.xlsx</include>
  534. </includes>
  535. </resource>
  536. </resources>
  537. <!-- 在maven生命周期validate阶段生成timestamp -->
  538. <plugins>
  539. <plugin>
  540. <groupId>org.codehaus.mojo</groupId>
  541. <artifactId>buildnumber-maven-plugin</artifactId>
  542. <version>1.3</version>
  543. <executions>
  544. <execution>
  545. <phase>validate</phase>
  546. <goals>
  547. <goal>create-timestamp</goal>
  548. </goals>
  549. </execution>
  550. </executions>
  551. <configuration>
  552. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  553. <items>
  554. <item>timestamp</item>
  555. </items>
  556. </configuration>
  557. </plugin>
  558. <plugin>
  559. <groupId>org.apache.maven.plugins</groupId>
  560. <artifactId>maven-compiler-plugin</artifactId>
  561. <configuration>
  562. <source>1.8</source>
  563. <target>1.8</target>
  564. </configuration>
  565. </plugin>
  566. <plugin>
  567. <groupId>com.samaxes.maven</groupId>
  568. <artifactId>minify-maven-plugin</artifactId>
  569. <version>1.7.4</version>
  570. <!-- 静态文件压缩 -->
  571. <executions>
  572. <execution>
  573. <id>default-minify</id>
  574. <phase>prepare-package</phase>
  575. <configuration>
  576. <charset>UTF-8</charset>
  577. <skipMerge>true</skipMerge>
  578. <closureLanguage>ECMASCRIPT5</closureLanguage>
  579. <closureAngularPass>true</closureAngularPass>
  580. <nosuffix>true</nosuffix>
  581. <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
  582. <cssSourceDir>resources</cssSourceDir>
  583. <cssEngine>YUI</cssEngine>
  584. <jsSourceDir>resources</jsSourceDir>
  585. <jsEngine>YUI</jsEngine>
  586. <cssSourceIncludes>
  587. <cssSourceInclude>css/**/*.css</cssSourceInclude>
  588. <cssSourceInclude>data/**/*.json</cssSourceInclude>
  589. </cssSourceIncludes>
  590. <cssSourceExcludes>
  591. <cssSourceExclude>css/**/*.min.css</cssSourceExclude>
  592. </cssSourceExcludes>
  593. <jsSourceIncludes>
  594. <jsSourceInclude>js/**/*.js</jsSourceInclude>
  595. </jsSourceIncludes>
  596. <jsSourceExcludes>
  597. <jsSourceExclude>js/**/*.min.js</jsSourceExclude>
  598. </jsSourceExcludes>
  599. </configuration>
  600. <goals>
  601. <goal>minify</goal>
  602. </goals>
  603. </execution>
  604. </executions>
  605. </plugin>
  606. <plugin>
  607. <artifactId>maven-resources-plugin</artifactId>
  608. <executions>
  609. <execution>
  610. <id>copy-resources</id>
  611. <phase>prepare-package</phase>
  612. <goals>
  613. <goal>copy-resources</goal>
  614. </goals>
  615. <configuration>
  616. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  617. <overwrite>false</overwrite>
  618. <resources>
  619. <resource>
  620. <directory>${basedir}/src/main/webapp</directory>
  621. </resource>
  622. </resources>
  623. </configuration>
  624. </execution>
  625. </executions>
  626. </plugin>
  627. <plugin>
  628. <groupId>com.uas.plugins</groupId>
  629. <artifactId>static-maven-plugin</artifactId>
  630. <version>0.0.2-SNAPSHOT</version>
  631. <!-- 静态资源分离 -->
  632. <executions>
  633. <execution>
  634. <id>default-static</id>
  635. <phase>prepare-package</phase>
  636. <configuration>
  637. <pathMatcher>static</pathMatcher>
  638. <staticUrl>${static-path}</staticUrl>
  639. <webappDir>${project.build.directory}/minify</webappDir>
  640. <sourceDir>/</sourceDir>
  641. <targetDir>${project.build.directory}/statics</targetDir>
  642. <staticDir>/</staticDir>
  643. <sourceIncludes>
  644. <sourceInclude>resources/js/**/*.js</sourceInclude>
  645. <sourceInclude>resources/data/**/*.json</sourceInclude>
  646. <sourceInclude>resources/view/**/*.html</sourceInclude>
  647. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  648. </sourceIncludes>
  649. <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
  650. <versionSuffix>
  651. <suffix>?_v=${timestamp}</suffix>
  652. <exclude>*/require.js,*.min.js,*.min.css</exclude>
  653. </versionSuffix>
  654. </configuration>
  655. <goals>
  656. <goal>static</goal>
  657. </goals>
  658. </execution>
  659. </executions>
  660. </plugin>
  661. <plugin>
  662. <groupId>org.apache.maven.plugins</groupId>
  663. <artifactId>maven-war-plugin</artifactId>
  664. <version>2.4</version>
  665. <configuration>
  666. <webResources>
  667. <resource>
  668. <directory>${project.build.directory}/statics</directory>
  669. </resource>
  670. <resource>
  671. <directory>${project.build.directory}/minify</directory>
  672. </resource>
  673. </webResources>
  674. </configuration>
  675. </plugin>
  676. <plugin>
  677. <groupId>org.apache.tomcat.maven</groupId>
  678. <artifactId>tomcat7-maven-plugin</artifactId>
  679. <version>2.2</version>
  680. <configuration>
  681. <port>8091</port>
  682. <path>/</path>
  683. <uriEncoding>utf-8</uriEncoding>
  684. </configuration>
  685. </plugin>
  686. </plugins>
  687. <pluginManagement>
  688. <plugins>
  689. <plugin>
  690. <groupId>org.eclipse.m2e</groupId>
  691. <artifactId>lifecycle-mapping</artifactId>
  692. <version>1.0.0</version>
  693. <configuration>
  694. <lifecycleMappingMetadata>
  695. <pluginExecutions>
  696. <pluginExecution>
  697. <pluginExecutionFilter>
  698. <groupId>
  699. org.codehaus.mojo
  700. </groupId>
  701. <artifactId>
  702. buildnumber-maven-plugin
  703. </artifactId>
  704. <versionRange>
  705. [1.3,)
  706. </versionRange>
  707. <goals>
  708. <goal>
  709. create-timestamp
  710. </goal>
  711. </goals>
  712. </pluginExecutionFilter>
  713. <action>
  714. <ignore></ignore>
  715. </action>
  716. </pluginExecution>
  717. </pluginExecutions>
  718. </lifecycleMappingMetadata>
  719. </configuration>
  720. </plugin>
  721. </plugins>
  722. </pluginManagement>
  723. </build>
  724. <distributionManagement>
  725. <!-- 发布release仓库 -->
  726. <repository>
  727. <id>platform-release</id>
  728. <name>platform-release</name>
  729. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url>
  730. </repository>
  731. <!-- 发布快照版本 -->
  732. <snapshotRepository>
  733. <id>platform-snapshots</id>
  734. <name>platform-snapshots</name>
  735. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url>
  736. </snapshotRepository>
  737. </distributionManagement>
  738. </project>