pom.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  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-b2b</artifactId>
  5. <packaging>war</packaging>
  6. <name>platform-b2b 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. <relativePath>../platform</relativePath>
  13. </parent>
  14. <profiles>
  15. <profile>
  16. <!-- 开发环境 -->
  17. <id>dev</id>
  18. <properties>
  19. <profile>dev</profile>
  20. <!-- static plugin -->
  21. <static-path>static</static-path>
  22. </properties>
  23. </profile>
  24. <profile>
  25. <!-- 测试环境 -->
  26. <id>test</id>
  27. <properties>
  28. <profile>test</profile>
  29. <!-- static plugin -->
  30. <static-path>static</static-path>
  31. </properties>
  32. <activation>
  33. <activeByDefault>true</activeByDefault>
  34. </activation>
  35. </profile>
  36. <profile>
  37. <!-- 生产环境 -->
  38. <id>prod</id>
  39. <properties>
  40. <profile>prod</profile>
  41. <!-- static plugin -->
  42. <static-path>http://static.ubtob.com</static-path>
  43. </properties>
  44. <!-- 默认 -->
  45. </profile>
  46. </profiles>
  47. <dependencies>
  48. <dependency>
  49. <groupId>javax.servlet</groupId>
  50. <artifactId>servlet-api</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>junit</groupId>
  54. <artifactId>junit</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.uas.platform</groupId>
  59. <artifactId>platform-core</artifactId>
  60. </dependency>
  61. <!-- spring -->
  62. <dependency>
  63. <groupId>org.springframework</groupId>
  64. <artifactId>spring-context</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework</groupId>
  68. <artifactId>spring-context-support</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework</groupId>
  72. <artifactId>spring-webmvc</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework</groupId>
  76. <artifactId>spring-jdbc</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-tx</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework</groupId>
  84. <artifactId>spring-aop</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework</groupId>
  88. <artifactId>spring-aspects</artifactId>
  89. </dependency>
  90. <!-- jpa -->
  91. <dependency>
  92. <groupId>org.springframework.data</groupId>
  93. <artifactId>spring-data-jpa</artifactId>
  94. </dependency>
  95. <!-- -->
  96. <dependency>
  97. <groupId>commons-fileupload</groupId>
  98. <artifactId>commons-fileupload</artifactId>
  99. <version>1.3.1</version>
  100. </dependency>
  101. <!-- sendMsg -->
  102. <dependency>
  103. <groupId>org.apache.axis</groupId>
  104. <artifactId>axis</artifactId>
  105. <version>1.6.0</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.apache.axis.jaxrpc</groupId>
  109. <artifactId>axis-jaxrpc</artifactId>
  110. <version>1.4</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>commons-discovery</groupId>
  114. <artifactId>commons-discovery</artifactId>
  115. <version>0.4</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.ibm</groupId>
  119. <artifactId>wsdl4j</artifactId>
  120. <version>1.4</version>
  121. </dependency>
  122. <!-- hibernate -->
  123. <dependency>
  124. <groupId>org.hibernate</groupId>
  125. <artifactId>hibernate-core</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.hibernate</groupId>
  129. <artifactId>hibernate-entitymanager</artifactId>
  130. <exclusions>
  131. <exclusion>
  132. <groupId>cglib</groupId>
  133. <artifactId>cglib</artifactId>
  134. </exclusion>
  135. <exclusion>
  136. <groupId>dom4j</groupId>
  137. <artifactId>dom4j</artifactId>
  138. </exclusion>
  139. </exclusions>
  140. </dependency>
  141. <dependency>
  142. <groupId>commons-collections</groupId>
  143. <artifactId>commons-collections</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.hibernate</groupId>
  147. <artifactId>hibernate-validator</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.aspectj</groupId>
  151. <artifactId>aspectjrt</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.aspectj</groupId>
  155. <artifactId>aspectjweaver</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.apache.commons</groupId>
  159. <artifactId>commons-lang3</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>javax.validation</groupId>
  163. <artifactId>validation-api</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>javax.transaction</groupId>
  167. <artifactId>jta</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.hibernate</groupId>
  171. <artifactId>hibernate-ehcache</artifactId>
  172. </dependency>
  173. <!-- jdbc -->
  174. <!--oracle-->
  175. <dependency>
  176. <groupId>com.oracle</groupId>
  177. <artifactId>ojdbc6</artifactId>
  178. </dependency>
  179. <!-- mysql -->
  180. <dependency>
  181. <groupId>mysql</groupId>
  182. <artifactId>mysql-connector-java</artifactId>
  183. <version>5.1.21</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.springframework</groupId>
  187. <artifactId>spring-orm</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>commons-pool</groupId>
  191. <artifactId>commons-pool</artifactId>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.alibaba</groupId>
  195. <artifactId>druid</artifactId>
  196. </dependency>
  197. <!-- spring mobile -->
  198. <dependency>
  199. <groupId>org.springframework.mobile</groupId>
  200. <artifactId>spring-mobile-device</artifactId>
  201. </dependency>
  202. <!--json-lib -->
  203. <dependency>
  204. <groupId>net.sf.json-lib</groupId>
  205. <artifactId>json-lib</artifactId>
  206. <classifier>jdk15</classifier>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.codehaus.jackson</groupId>
  210. <artifactId>jackson-core-asl</artifactId>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.codehaus.jackson</groupId>
  214. <artifactId>jackson-mapper-asl</artifactId>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.fasterxml.jackson.core</groupId>
  218. <artifactId>jackson-core</artifactId>
  219. </dependency>
  220. <dependency>
  221. <groupId>com.fasterxml.jackson.core</groupId>
  222. <artifactId>jackson-databind</artifactId>
  223. </dependency>
  224. <dependency>
  225. <groupId>com.fasterxml.jackson.core</groupId>
  226. <artifactId>jackson-annotations</artifactId>
  227. </dependency>
  228. <dependency>
  229. <groupId>com.alibaba</groupId>
  230. <artifactId>fastjson</artifactId>
  231. </dependency>
  232. <!-- velocity -->
  233. <dependency>
  234. <groupId>org.apache.velocity</groupId>
  235. <artifactId>velocity</artifactId>
  236. </dependency>
  237. <!-- mail -->
  238. <dependency>
  239. <groupId>javax.mail</groupId>
  240. <artifactId>mail</artifactId>
  241. </dependency>
  242. <!-- xinge -->
  243. <dependency>
  244. <groupId>tencent</groupId>
  245. <artifactId>xinge</artifactId>
  246. <version>1.1.4</version>
  247. </dependency>
  248. <!-- jxls -->
  249. <dependency>
  250. <groupId>net.sf.jxls</groupId>
  251. <artifactId>jxls-core</artifactId>
  252. <version>1.0.4</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>net.sf.jxls</groupId>
  256. <artifactId>jxls-reader</artifactId>
  257. <version>1.0.4</version>
  258. </dependency>
  259. <!-- redis -->
  260. <dependency>
  261. <groupId>redis.clients</groupId>
  262. <artifactId>jedis</artifactId>
  263. <version>2.7.3</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.springframework.data</groupId>
  267. <artifactId>spring-data-redis</artifactId>
  268. <version>1.6.0.RELEASE</version>
  269. </dependency>
  270. <!-- 邮件 -->
  271. <dependency>
  272. <groupId>com.uas.message</groupId>
  273. <artifactId>message-mail-api</artifactId>
  274. </dependency>
  275. <!-- 消息-->
  276. <dependency>
  277. <groupId>com.uas.message</groupId>
  278. <artifactId>message-sms-api</artifactId>
  279. </dependency>
  280. <!--<dependency>-->
  281. <!--<groupId>com.uas.account</groupId>-->
  282. <!--<artifactId>account-common</artifactId>-->
  283. <!--<version>0.0.1-SNAPSHOT</version>-->
  284. <!--</dependency>-->
  285. <dependency>
  286. <groupId>com.uas.sso</groupId>
  287. <artifactId>sso-common</artifactId>
  288. <version>0.0.1-SNAPSHOT</version>
  289. <exclusions>
  290. <exclusion>
  291. <artifactId>tomcat-embed-core</artifactId>
  292. <groupId>org.apache.tomcat.embed</groupId>
  293. </exclusion>
  294. </exclusions>
  295. </dependency>
  296. <dependency>
  297. <groupId>com.uas.sso</groupId>
  298. <artifactId>sso-common</artifactId>
  299. <version>0.0.1-SNAPSHOT</version>
  300. </dependency>
  301. <dependency>
  302. <groupId>com.uas.ps</groupId>
  303. <artifactId>ps-core</artifactId>
  304. <version>0.0.1-SNAPSHOT</version>
  305. </dependency>
  306. <!-- dubbo -->
  307. <dependency>
  308. <groupId>com.alibaba</groupId>
  309. <artifactId>dubbo</artifactId>
  310. <exclusions>
  311. <exclusion>
  312. <groupId>javax.servlet</groupId>
  313. <artifactId>javax.servlet-api</artifactId>
  314. </exclusion>
  315. <exclusion>
  316. <groupId>org.apache.httpcomponents</groupId>
  317. <artifactId>httpcore</artifactId>
  318. </exclusion>
  319. </exclusions>
  320. </dependency>
  321. <dependency>
  322. <groupId>com.github.sgroschupf</groupId>
  323. <artifactId>zkclient</artifactId>
  324. </dependency>
  325. <!-- hessian -->
  326. <dependency>
  327. <groupId>com.caucho</groupId>
  328. <artifactId>hessian</artifactId>
  329. </dependency>
  330. <!-- search on dubbo -->
  331. <dependency>
  332. <groupId>com.uas.search</groupId>
  333. <artifactId>search-api-b2b</artifactId>
  334. <version>0.1.9-SNAPSHOT</version>
  335. </dependency>
  336. <!-- dfs on dubbo -->
  337. <dependency>
  338. <groupId>com.uas.dfs</groupId>
  339. <artifactId>dfs-api</artifactId>
  340. </dependency>
  341. </dependencies>
  342. <build>
  343. <finalName>platform-b2b</finalName>
  344. <!-- 受profile影响的目录 -->
  345. <resources>
  346. <resource>
  347. <directory>${basedir}/src/main/resources</directory>
  348. <filtering>true</filtering>
  349. <excludes>
  350. <exclude>**/*.xls</exclude>
  351. </excludes>
  352. </resource>
  353. <!-- xls文件不能filter处理,需区分出来 -->
  354. <resource>
  355. <directory>${basedir}/src/main/resources</directory>
  356. <filtering>false</filtering>
  357. <includes>
  358. <include>**/*.xls</include>
  359. </includes>
  360. </resource>
  361. </resources>
  362. <!-- 在maven生命周期validate阶段生成timestamp -->
  363. <plugins>
  364. <!--<plugin>
  365. <groupId>org.codehaus.mojo</groupId>
  366. <artifactId>buildnumber-maven-plugin</artifactId>
  367. <version>1.3</version>
  368. <executions>
  369. <execution>
  370. <phase>validate</phase>
  371. <goals>
  372. <goal>create-timestamp</goal>
  373. </goals>
  374. </execution>
  375. </executions>
  376. <configuration>
  377. <configuration>
  378. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  379. <items>
  380. <item>timestamp</item>
  381. </items>
  382. </configuration>
  383. </configuration>
  384. </plugin>
  385. <plugin>
  386. <groupId>org.apache.maven.plugins</groupId>
  387. <artifactId>maven-compiler-plugin</artifactId>
  388. <configuration>
  389. <source>1.7</source>
  390. <target>1.7</target>
  391. </configuration>
  392. </plugin>
  393. <plugin>
  394. <groupId>com.samaxes.maven</groupId>
  395. <artifactId>minify-maven-plugin</artifactId>
  396. <version>1.7.4</version>
  397. &lt;!&ndash; 静态文件压缩 &ndash;&gt;
  398. <executions>
  399. <execution>
  400. <id>default-minify</id>
  401. <phase>prepare-package</phase>
  402. <configuration>
  403. <charset>UTF-8</charset>
  404. <skipMerge>true</skipMerge>
  405. <closureLanguage>ECMASCRIPT5</closureLanguage>
  406. <closureAngularPass>true</closureAngularPass>
  407. <nosuffix>true</nosuffix>
  408. <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
  409. <cssSourceDir>resources</cssSourceDir>
  410. <cssEngine>YUI</cssEngine>
  411. <jsSourceDir>resources</jsSourceDir>
  412. <jsEngine>CLOSURE</jsEngine>
  413. <cssSourceIncludes>
  414. <cssSourceInclude>css/**/*.css</cssSourceInclude>
  415. <cssSourceInclude>data/**/*.json</cssSourceInclude>
  416. </cssSourceIncludes>
  417. <cssSourceExcludes>
  418. <cssSourceExclude>css/**/*.min.css</cssSourceExclude>
  419. </cssSourceExcludes>
  420. <jsSourceIncludes>
  421. <jsSourceInclude>js/**/*.js</jsSourceInclude>
  422. </jsSourceIncludes>
  423. <jsSourceExcludes>
  424. <jsSourceExclude>js/**/*.min.js</jsSourceExclude>
  425. </jsSourceExcludes>
  426. </configuration>
  427. <goals>
  428. <goal>minify</goal>
  429. </goals>
  430. </execution>
  431. </executions>
  432. </plugin>
  433. <plugin>
  434. <artifactId>maven-resources-plugin</artifactId>
  435. <executions>
  436. <execution>
  437. <id>copy-resources</id>
  438. <phase>prepare-package</phase>
  439. <goals>
  440. <goal>copy-resources</goal>
  441. </goals>
  442. <configuration>
  443. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  444. <overwrite>false</overwrite>
  445. <resources>
  446. <resource>
  447. <directory>${basedir}/src/main/webapp</directory>
  448. </resource>
  449. </resources>
  450. </configuration>
  451. </execution>
  452. </executions>
  453. </plugin>
  454. <plugin>
  455. <groupId>com.uas.plugins</groupId>
  456. <artifactId>static-maven-plugin</artifactId>
  457. <version>0.0.2-SNAPSHOT</version>
  458. &lt;!&ndash; 静态资源分离 &ndash;&gt;
  459. <executions>
  460. <execution>
  461. <id>default-static</id>
  462. <phase>prepare-package</phase>
  463. <configuration>
  464. <pathMatcher>static</pathMatcher>
  465. <staticUrl>${static-path}</staticUrl>
  466. <webappDir>${project.build.directory}/minify</webappDir>
  467. <sourceDir>/</sourceDir>
  468. <targetDir>${project.build.directory}/statics</targetDir>
  469. <staticDir>/</staticDir>
  470. <sourceIncludes>
  471. <sourceInclude>resources/js/**/*.js</sourceInclude>
  472. <sourceInclude>resources/data/**/*.json</sourceInclude>
  473. <sourceInclude>resources/tpl/**/*.html</sourceInclude>
  474. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  475. </sourceIncludes>
  476. http://static.ubtob.com/css/index.css?_v=1450321871828
  477. <versionSuffix>
  478. <suffix>?_v=${timestamp}</suffix>
  479. <exclude>*/require.js,*.min.js,*.min.css</exclude>
  480. </versionSuffix>
  481. </configuration>
  482. <goals>
  483. <goal>static</goal>
  484. </goals>
  485. </execution>
  486. </executions>
  487. </plugin>
  488. <plugin>
  489. <groupId>org.apache.maven.plugins</groupId>
  490. <artifactId>maven-war-plugin</artifactId>
  491. <version>2.4</version>
  492. <configuration>
  493. <webResources>
  494. <resource>
  495. <directory>${project.build.directory}/statics</directory>
  496. </resource>
  497. <resource>
  498. <directory>${project.build.directory}/minify</directory>
  499. </resource>
  500. </webResources>
  501. </configuration>
  502. </plugin>-->
  503. <plugin>
  504. <groupId>org.apache.tomcat.maven</groupId>
  505. <artifactId>tomcat7-maven-plugin</artifactId>
  506. <version>2.2</version>
  507. <configuration>
  508. <port>8090</port>
  509. <path>/platform-b2b</path>
  510. <uriEncoding>utf-8</uriEncoding>
  511. </configuration>
  512. </plugin>
  513. </plugins>
  514. <!--<pluginManagement>
  515. <plugins>
  516. <plugin>
  517. <groupId>org.eclipse.m2e</groupId>
  518. <artifactId>lifecycle-mapping</artifactId>
  519. <version>1.0.0</version>
  520. <configuration>
  521. <lifecycleMappingMetadata>
  522. <pluginExecutions>
  523. <pluginExecution>
  524. <pluginExecutionFilter>
  525. <groupId>
  526. org.codehaus.mojo
  527. </groupId>
  528. <artifactId>
  529. buildnumber-maven-plugin
  530. </artifactId>
  531. <versionRange>
  532. [1.3,)
  533. </versionRange>
  534. <goals>
  535. <goal>
  536. create-timestamp
  537. </goal>
  538. </goals>
  539. </pluginExecutionFilter>
  540. <action>
  541. <ignore></ignore>
  542. </action>
  543. </pluginExecution>
  544. </pluginExecutions>
  545. </lifecycleMappingMetadata>
  546. </configuration>
  547. </plugin>
  548. </plugins>
  549. </pluginManagement>-->
  550. </build>
  551. <properties>
  552. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  553. <maven.compiler.source>1.7</maven.compiler.source>
  554. <maven.compiler.target>1.7</maven.compiler.target>
  555. <skipTests>true</skipTests>
  556. </properties>
  557. </project>