pom.xml 19 KB

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