pom.xml 19 KB

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