pom.xml 20 KB

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