pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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. <dependencies>
  15. <dependency>
  16. <groupId>javax.servlet</groupId>
  17. <artifactId>servlet-api</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>junit</groupId>
  21. <artifactId>junit</artifactId>
  22. <scope>test</scope>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.uas.platform</groupId>
  26. <artifactId>platform-core</artifactId>
  27. </dependency>
  28. <!-- spring -->
  29. <dependency>
  30. <groupId>org.springframework</groupId>
  31. <artifactId>spring-context</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework</groupId>
  35. <artifactId>spring-context-support</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework</groupId>
  39. <artifactId>spring-webmvc</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework</groupId>
  43. <artifactId>spring-jdbc</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework</groupId>
  47. <artifactId>spring-tx</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework</groupId>
  51. <artifactId>spring-aop</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework</groupId>
  55. <artifactId>spring-aspects</artifactId>
  56. </dependency>
  57. <!-- jpa -->
  58. <dependency>
  59. <groupId>org.springframework.data</groupId>
  60. <artifactId>spring-data-jpa</artifactId>
  61. </dependency>
  62. <!-- -->
  63. <dependency>
  64. <groupId>commons-fileupload</groupId>
  65. <artifactId>commons-fileupload</artifactId>
  66. <version>1.3.1</version>
  67. </dependency>
  68. <!-- sendMsg -->
  69. <dependency>
  70. <groupId>org.apache.axis</groupId>
  71. <artifactId>axis</artifactId>
  72. <version>1.6.0</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.axis.jaxrpc</groupId>
  76. <artifactId>axis-jaxrpc</artifactId>
  77. <version>1.4</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>commons-discovery</groupId>
  81. <artifactId>commons-discovery</artifactId>
  82. <version>0.4</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.ibm</groupId>
  86. <artifactId>wsdl4j</artifactId>
  87. <version>1.4</version>
  88. </dependency>
  89. <!-- hibernate -->
  90. <dependency>
  91. <groupId>org.hibernate</groupId>
  92. <artifactId>hibernate-core</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.hibernate</groupId>
  96. <artifactId>hibernate-entitymanager</artifactId>
  97. <exclusions>
  98. <exclusion>
  99. <groupId>cglib</groupId>
  100. <artifactId>cglib</artifactId>
  101. </exclusion>
  102. <exclusion>
  103. <groupId>dom4j</groupId>
  104. <artifactId>dom4j</artifactId>
  105. </exclusion>
  106. </exclusions>
  107. </dependency>
  108. <dependency>
  109. <groupId>commons-collections</groupId>
  110. <artifactId>commons-collections</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.hibernate</groupId>
  114. <artifactId>hibernate-validator</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.aspectj</groupId>
  118. <artifactId>aspectjrt</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.aspectj</groupId>
  122. <artifactId>aspectjweaver</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.apache.commons</groupId>
  126. <artifactId>commons-lang3</artifactId>
  127. </dependency>
  128. <dependency>
  129. <groupId>javax.validation</groupId>
  130. <artifactId>validation-api</artifactId>
  131. </dependency>
  132. <dependency>
  133. <groupId>javax.transaction</groupId>
  134. <artifactId>jta</artifactId>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.hibernate</groupId>
  138. <artifactId>hibernate-ehcache</artifactId>
  139. </dependency>
  140. <!-- jdbc -->
  141. <dependency>
  142. <groupId>com.oracle</groupId>
  143. <artifactId>ojdbc6</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.springframework</groupId>
  147. <artifactId>spring-orm</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>commons-pool</groupId>
  151. <artifactId>commons-pool</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>commons-dbcp</groupId>
  155. <artifactId>commons-dbcp</artifactId>
  156. </dependency>
  157. <!-- spring mobile -->
  158. <dependency>
  159. <groupId>org.springframework.mobile</groupId>
  160. <artifactId>spring-mobile-device</artifactId>
  161. </dependency>
  162. <!--json-lib -->
  163. <dependency>
  164. <groupId>net.sf.json-lib</groupId>
  165. <artifactId>json-lib</artifactId>
  166. <classifier>jdk15</classifier>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.codehaus.jackson</groupId>
  170. <artifactId>jackson-core-asl</artifactId>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.codehaus.jackson</groupId>
  174. <artifactId>jackson-mapper-asl</artifactId>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.fasterxml.jackson.core</groupId>
  178. <artifactId>jackson-core</artifactId>
  179. </dependency>
  180. <dependency>
  181. <groupId>com.fasterxml.jackson.core</groupId>
  182. <artifactId>jackson-databind</artifactId>
  183. </dependency>
  184. <dependency>
  185. <groupId>com.fasterxml.jackson.core</groupId>
  186. <artifactId>jackson-annotations</artifactId>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.alibaba</groupId>
  190. <artifactId>fastjson</artifactId>
  191. </dependency>
  192. <!-- velocity -->
  193. <dependency>
  194. <groupId>org.apache.velocity</groupId>
  195. <artifactId>velocity</artifactId>
  196. </dependency>
  197. <!-- mail -->
  198. <dependency>
  199. <groupId>javax.mail</groupId>
  200. <artifactId>mail</artifactId>
  201. </dependency>
  202. <!-- xinge -->
  203. <dependency>
  204. <groupId>tencent</groupId>
  205. <artifactId>xinge</artifactId>
  206. <version>1.1.4</version>
  207. </dependency>
  208. <!-- jxls -->
  209. <dependency>
  210. <groupId>net.sf.jxls</groupId>
  211. <artifactId>jxls-core</artifactId>
  212. <version>1.0.4</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>net.sf.jxls</groupId>
  216. <artifactId>jxls-reader</artifactId>
  217. <version>1.0.4</version>
  218. </dependency>
  219. </dependencies>
  220. <build>
  221. <finalName>platform-b2b</finalName>
  222. <plugins>
  223. <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
  224. <configuration> <source>1.7</source> <target>1.7</target> </configuration>
  225. </plugin> -->
  226. <!-- <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId>
  227. <version>7.6.Final</version> <executions> <execution> 下面部分是让执行 mvn install
  228. 时 自动执行jboss-as:deploy <phase>install</phase> <goals> <goal>deploy</goal>
  229. </goals> 远程服务器的相关配置 <configuration> <hostname>60.host</hostname> <port>9999</port>
  230. 用户名和密码为jboss as 中添加的用户名和密码 <username>administrator</username> <password>select111***</password>
  231. </configuration> </execution> </executions> </plugin> -->
  232. <!-- <plugin>
  233. <groupId>org.apache.tomcat.maven</groupId>
  234. <artifactId>tomcat7-maven-plugin</artifactId>
  235. <version>2.2</version>
  236. <executions>
  237. <execution>
  238. <phase>install</phase>
  239. <goals>
  240. <goal>deploy</goal>
  241. </goals>
  242. <configuration>
  243. <url>http://60.host:9090/manager/text</url>
  244. <username>administrator</username>
  245. <password>select111***</password>
  246. <path>/platform-b2b</path>
  247. <update>true</update>
  248. </configuration>
  249. </execution>
  250. </executions>
  251. </plugin> -->
  252. <!-- <plugin>
  253. <groupId>com.samaxes.maven</groupId>
  254. <artifactId>minify-maven-plugin</artifactId>
  255. <version>1.7.4</version>
  256. 静态文件压缩
  257. <executions>
  258. <execution>
  259. <id>default-minify</id>
  260. <phase>prepare-package</phase>
  261. <configuration>
  262. <charset>UTF-8</charset>
  263. <skipMerge>true</skipMerge>
  264. <closureLanguage>ECMASCRIPT5</closureLanguage>
  265. <closureAngularPass>true</closureAngularPass>
  266. <nosuffix>true</nosuffix>
  267. <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
  268. <cssSourceDir>resources</cssSourceDir>
  269. <cssEngine>YUI</cssEngine>
  270. <jsSourceDir>resources</jsSourceDir>
  271. <jsEngine>CLOSURE</jsEngine>
  272. <cssSourceIncludes>
  273. <cssSourceInclude>css/**/*.css</cssSourceInclude>
  274. <cssSourceInclude>data/**/*.json</cssSourceInclude>
  275. </cssSourceIncludes>
  276. <cssSourceExcludes>
  277. <cssSourceExclude>css/**/*.min.css</cssSourceExclude>
  278. </cssSourceExcludes>
  279. <jsSourceIncludes>
  280. <jsSourceInclude>js/**/*.js</jsSourceInclude>
  281. </jsSourceIncludes>
  282. <jsSourceExcludes>
  283. <jsSourceExclude>js/**/*.min.js</jsSourceExclude>
  284. </jsSourceExcludes>
  285. </configuration>
  286. <goals>
  287. <goal>minify</goal>
  288. </goals>
  289. </execution>
  290. </executions>
  291. </plugin>
  292. <plugin>
  293. <artifactId>maven-resources-plugin</artifactId>
  294. <executions>
  295. <execution>
  296. <id>copy-resources</id>
  297. <phase>prepare-package</phase>
  298. <goals>
  299. <goal>copy-resources</goal>
  300. </goals>
  301. <configuration>
  302. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  303. <overwrite>false</overwrite>
  304. <resources>
  305. <resource>
  306. <directory>${basedir}/src/main/webapp</directory>
  307. </resource>
  308. </resources>
  309. </configuration>
  310. </execution>
  311. </executions>
  312. </plugin>
  313. <plugin>
  314. <groupId>com.uas.plugins</groupId>
  315. <artifactId>static-maven-plugin</artifactId>
  316. <version>0.0.1-SNAPSHOT</version>
  317. 静态资源分离
  318. <executions>
  319. <execution>
  320. <id>default-static</id>
  321. <phase>prepare-package</phase>
  322. <configuration>
  323. <pathMatcher>static</pathMatcher>
  324. <staticUrl>http://static.ubtob.com</staticUrl>
  325. <webappDir>${project.build.directory}/minify</webappDir>
  326. <sourceDir>/</sourceDir>
  327. <targetDir>${project.build.directory}/statics</targetDir>
  328. <staticDir>/</staticDir>
  329. <sourceIncludes>
  330. <sourceInclude>resources/js/**/*.js</sourceInclude>
  331. <sourceInclude>resources/data/**/*.json</sourceInclude>
  332. <sourceInclude>resources/tpl/**/*.html</sourceInclude>
  333. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  334. </sourceIncludes>
  335. </configuration>
  336. <goals>
  337. <goal>static</goal>
  338. </goals>
  339. </execution>
  340. </executions>
  341. </plugin>
  342. <plugin>
  343. <groupId>org.apache.maven.plugins</groupId>
  344. <artifactId>maven-war-plugin</artifactId>
  345. <version>2.4</version>
  346. <configuration>
  347. <webResources>
  348. <resource>
  349. <directory>${project.build.directory}/statics</directory>
  350. </resource>
  351. <resource>
  352. <directory>${project.build.directory}/minify</directory>
  353. </resource>
  354. </webResources>
  355. </configuration>
  356. </plugin> -->
  357. </plugins>
  358. </build>
  359. <properties>
  360. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  361. <maven.compiler.source>1.7</maven.compiler.source>
  362. <maven.compiler.target>1.7</maven.compiler.target>
  363. <skipTests>true</skipTests>
  364. </properties>
  365. <distributionManagement>
  366. <!-- 发布release仓库 -->
  367. <repository>
  368. <id>platform-release</id>
  369. <name>platform-release</name>
  370. <url>http://192.168.253.111:8001/artifactory/libs-release-local</url>
  371. </repository>
  372. <!-- 发布快照版本 -->
  373. <snapshotRepository>
  374. <id>platform-snapshots</id>
  375. <name>platform-snapshots</name>
  376. <url>http://192.168.253.111:8001/artifactory/libs-snapshot-local</url>
  377. </snapshotRepository>
  378. </distributionManagement>
  379. </project>