pom.xml 20 KB

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