pom.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  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>static</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. <version>1.1.6</version>
  197. </dependency>
  198. <!-- spring mobile -->
  199. <dependency>
  200. <groupId>org.springframework.mobile</groupId>
  201. <artifactId>spring-mobile-device</artifactId>
  202. </dependency>
  203. <!--json-lib -->
  204. <dependency>
  205. <groupId>net.sf.json-lib</groupId>
  206. <artifactId>json-lib</artifactId>
  207. <classifier>jdk15</classifier>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.codehaus.jackson</groupId>
  211. <artifactId>jackson-core-asl</artifactId>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.codehaus.jackson</groupId>
  215. <artifactId>jackson-mapper-asl</artifactId>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.fasterxml.jackson.core</groupId>
  219. <artifactId>jackson-core</artifactId>
  220. </dependency>
  221. <dependency>
  222. <groupId>com.fasterxml.jackson.core</groupId>
  223. <artifactId>jackson-databind</artifactId>
  224. </dependency>
  225. <dependency>
  226. <groupId>com.fasterxml.jackson.core</groupId>
  227. <artifactId>jackson-annotations</artifactId>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.alibaba</groupId>
  231. <artifactId>fastjson</artifactId>
  232. </dependency>
  233. <!-- velocity -->
  234. <dependency>
  235. <groupId>org.apache.velocity</groupId>
  236. <artifactId>velocity</artifactId>
  237. </dependency>
  238. <!-- mail -->
  239. <dependency>
  240. <groupId>javax.mail</groupId>
  241. <artifactId>mail</artifactId>
  242. </dependency>
  243. <!-- xinge -->
  244. <dependency>
  245. <groupId>tencent</groupId>
  246. <artifactId>xinge</artifactId>
  247. <version>1.1.4</version>
  248. </dependency>
  249. <!-- jxls -->
  250. <dependency>
  251. <groupId>net.sf.jxls</groupId>
  252. <artifactId>jxls-core</artifactId>
  253. <version>1.0.4</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>net.sf.jxls</groupId>
  257. <artifactId>jxls-reader</artifactId>
  258. <version>1.0.4</version>
  259. </dependency>
  260. <!-- redis -->
  261. <dependency>
  262. <groupId>redis.clients</groupId>
  263. <artifactId>jedis</artifactId>
  264. <version>2.7.3</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.springframework.data</groupId>
  268. <artifactId>spring-data-redis</artifactId>
  269. <version>1.6.0.RELEASE</version>
  270. </dependency>
  271. <!-- 邮件 -->
  272. <dependency>
  273. <groupId>com.uas.message</groupId>
  274. <artifactId>message-mail-api</artifactId>
  275. </dependency>
  276. <!-- 消息-->
  277. <dependency>
  278. <groupId>com.uas.message</groupId>
  279. <artifactId>message-sms-api</artifactId>
  280. </dependency>
  281. <dependency>
  282. <groupId>com.uas.account</groupId>
  283. <artifactId>account-common</artifactId>
  284. <version>0.0.1-SNAPSHOT</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>com.uas.sso</groupId>
  288. <artifactId>sso-common</artifactId>
  289. <version>0.0.1-SNAPSHOT</version>
  290. <exclusions>
  291. <exclusion>
  292. <artifactId>tomcat-embed-core</artifactId>
  293. <groupId>org.apache.tomcat.embed</groupId>
  294. </exclusion>
  295. </exclusions>
  296. </dependency>
  297. <dependency>
  298. <groupId>com.uas.ps</groupId>
  299. <artifactId>ps-core</artifactId>
  300. <version>0.0.1-SNAPSHOT</version>
  301. </dependency>
  302. <!-- dubbo -->
  303. <dependency>
  304. <groupId>com.alibaba</groupId>
  305. <artifactId>dubbo</artifactId>
  306. <exclusions>
  307. <exclusion>
  308. <groupId>javax.servlet</groupId>
  309. <artifactId>javax.servlet-api</artifactId>
  310. </exclusion>
  311. <exclusion>
  312. <groupId>org.apache.httpcomponents</groupId>
  313. <artifactId>httpcore</artifactId>
  314. </exclusion>
  315. </exclusions>
  316. </dependency>
  317. <dependency>
  318. <groupId>com.github.sgroschupf</groupId>
  319. <artifactId>zkclient</artifactId>
  320. </dependency>
  321. <!-- hessian -->
  322. <dependency>
  323. <groupId>com.caucho</groupId>
  324. <artifactId>hessian</artifactId>
  325. </dependency>
  326. <!-- search on dubbo -->
  327. <dependency>
  328. <groupId>com.uas.search</groupId>
  329. <artifactId>search-api-b2b</artifactId>
  330. <version>0.1.9-SNAPSHOT</version>
  331. </dependency>
  332. <!-- dfs on dubbo -->
  333. <dependency>
  334. <groupId>com.uas.dfs</groupId>
  335. <artifactId>dfs-api</artifactId>
  336. </dependency>
  337. </dependencies>
  338. <build>
  339. <finalName>platform-b2b</finalName>
  340. <!-- 受profile影响的目录 -->
  341. <resources>
  342. <resource>
  343. <directory>${basedir}/src/main/resources</directory>
  344. <filtering>true</filtering>
  345. <excludes>
  346. <exclude>**/*.xls</exclude>
  347. </excludes>
  348. </resource>
  349. <!-- xls文件不能filter处理,需区分出来 -->
  350. <resource>
  351. <directory>${basedir}/src/main/resources</directory>
  352. <filtering>false</filtering>
  353. <includes>
  354. <include>**/*.xls</include>
  355. </includes>
  356. </resource>
  357. </resources>
  358. <!-- 在maven生命周期validate阶段生成timestamp -->
  359. <plugins>
  360. <plugin>
  361. <groupId>org.codehaus.mojo</groupId>
  362. <artifactId>buildnumber-maven-plugin</artifactId>
  363. <version>1.3</version>
  364. <executions>
  365. <execution>
  366. <phase>validate</phase>
  367. <goals>
  368. <goal>create-timestamp</goal>
  369. </goals>
  370. </execution>
  371. </executions>
  372. <configuration>
  373. <configuration>
  374. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  375. <items>
  376. <item>timestamp</item>
  377. </items>
  378. </configuration>
  379. </configuration>
  380. </plugin>
  381. <plugin>
  382. <groupId>org.apache.maven.plugins</groupId>
  383. <artifactId>maven-compiler-plugin</artifactId>
  384. <configuration>
  385. <source>1.7</source>
  386. <target>1.7</target>
  387. </configuration>
  388. </plugin>
  389. <plugin>
  390. <groupId>com.samaxes.maven</groupId>
  391. <artifactId>minify-maven-plugin</artifactId>
  392. <version>1.7.4</version>
  393. <!-- 静态文件压缩 -->
  394. <executions>
  395. <execution>
  396. <id>default-minify</id>
  397. <phase>prepare-package</phase>
  398. <configuration>
  399. <charset>UTF-8</charset>
  400. <skipMerge>true</skipMerge>
  401. <closureLanguage>ECMASCRIPT5</closureLanguage>
  402. <closureAngularPass>true</closureAngularPass>
  403. <nosuffix>true</nosuffix>
  404. <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
  405. <cssSourceDir>resources</cssSourceDir>
  406. <cssEngine>YUI</cssEngine>
  407. <jsSourceDir>resources</jsSourceDir>
  408. <jsEngine>CLOSURE</jsEngine>
  409. <cssSourceIncludes>
  410. <cssSourceInclude>css/**/*.css</cssSourceInclude>
  411. <cssSourceInclude>data/**/*.json</cssSourceInclude>
  412. </cssSourceIncludes>
  413. <cssSourceExcludes>
  414. <cssSourceExclude>css/**/*.min.css</cssSourceExclude>
  415. </cssSourceExcludes>
  416. <jsSourceIncludes>
  417. <jsSourceInclude>js/**/*.js</jsSourceInclude>
  418. </jsSourceIncludes>
  419. <jsSourceExcludes>
  420. <jsSourceExclude>js/**/*.min.js</jsSourceExclude>
  421. </jsSourceExcludes>
  422. </configuration>
  423. <goals>
  424. <goal>minify</goal>
  425. </goals>
  426. </execution>
  427. </executions>
  428. </plugin>
  429. <plugin>
  430. <artifactId>maven-resources-plugin</artifactId>
  431. <executions>
  432. <execution>
  433. <id>copy-resources</id>
  434. <phase>prepare-package</phase>
  435. <goals>
  436. <goal>copy-resources</goal>
  437. </goals>
  438. <configuration>
  439. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  440. <overwrite>false</overwrite>
  441. <resources>
  442. <resource>
  443. <directory>${basedir}/src/main/webapp</directory>
  444. </resource>
  445. </resources>
  446. </configuration>
  447. </execution>
  448. </executions>
  449. </plugin>
  450. <plugin>
  451. <groupId>com.uas.plugins</groupId>
  452. <artifactId>static-maven-plugin</artifactId>
  453. <version>0.0.2-SNAPSHOT</version>
  454. <!-- 静态资源分离 -->
  455. <executions>
  456. <execution>
  457. <id>default-static</id>
  458. <phase>prepare-package</phase>
  459. <configuration>
  460. <pathMatcher>static</pathMatcher>
  461. <staticUrl>${static-path}</staticUrl>
  462. <webappDir>${project.build.directory}/minify</webappDir>
  463. <sourceDir>/</sourceDir>
  464. <targetDir>${project.build.directory}/statics</targetDir>
  465. <staticDir>/</staticDir>
  466. <sourceIncludes>
  467. <sourceInclude>resources/js/**/*.js</sourceInclude>
  468. <sourceInclude>resources/data/**/*.json</sourceInclude>
  469. <sourceInclude>resources/tpl/**/*.html</sourceInclude>
  470. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  471. </sourceIncludes>
  472. http://static.ubtob.com/css/index.css?_v=1450321871828
  473. <versionSuffix>
  474. <suffix>?_v=${timestamp}</suffix>
  475. <exclude>*/require.js,*.min.js,*.min.css</exclude>
  476. </versionSuffix>
  477. </configuration>
  478. <goals>
  479. <goal>static</goal>
  480. </goals>
  481. </execution>
  482. </executions>
  483. </plugin>
  484. <plugin>
  485. <groupId>org.apache.maven.plugins</groupId>
  486. <artifactId>maven-war-plugin</artifactId>
  487. <version>2.4</version>
  488. <configuration>
  489. <webResources>
  490. <resource>
  491. <directory>${project.build.directory}/statics</directory>
  492. </resource>
  493. <resource>
  494. <directory>${project.build.directory}/minify</directory>
  495. </resource>
  496. </webResources>
  497. </configuration>
  498. </plugin>
  499. <plugin>
  500. <groupId>org.apache.tomcat.maven</groupId>
  501. <artifactId>tomcat7-maven-plugin</artifactId>
  502. <version>2.2</version>
  503. <configuration>
  504. <port>8090</port>
  505. <path>/platform-b2b</path>
  506. <uriEncoding>utf-8</uriEncoding>
  507. </configuration>
  508. </plugin>
  509. </plugins>
  510. <pluginManagement>
  511. <plugins>
  512. <plugin>
  513. <groupId>org.eclipse.m2e</groupId>
  514. <artifactId>lifecycle-mapping</artifactId>
  515. <version>1.0.0</version>
  516. <configuration>
  517. <lifecycleMappingMetadata>
  518. <pluginExecutions>
  519. <pluginExecution>
  520. <pluginExecutionFilter>
  521. <groupId>
  522. org.codehaus.mojo
  523. </groupId>
  524. <artifactId>
  525. buildnumber-maven-plugin
  526. </artifactId>
  527. <versionRange>
  528. [1.3,)
  529. </versionRange>
  530. <goals>
  531. <goal>
  532. create-timestamp
  533. </goal>
  534. </goals>
  535. </pluginExecutionFilter>
  536. <action>
  537. <ignore></ignore>
  538. </action>
  539. </pluginExecution>
  540. </pluginExecutions>
  541. </lifecycleMappingMetadata>
  542. </configuration>
  543. </plugin>
  544. </plugins>
  545. </pluginManagement>
  546. </build>
  547. <properties>
  548. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  549. <maven.compiler.source>1.7</maven.compiler.source>
  550. <maven.compiler.target>1.7</maven.compiler.target>
  551. <skipTests>true</skipTests>
  552. </properties>
  553. </project>