pom.xml 20 KB

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