pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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. <parent>
  5. <groupId>com.uas.platform</groupId>
  6. <artifactId>platform</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>b2bManage</artifactId>
  10. <packaging>war</packaging>
  11. <version>0.0.1</version>
  12. <name>b2b-manage Maven Webapp</name>
  13. <url>http://maven.apache.org</url>
  14. <dependencies>
  15. <!-- spring-webmvc -->
  16. <dependency>
  17. <groupId>org.springframework</groupId>
  18. <artifactId>spring-webmvc</artifactId>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework</groupId>
  22. <artifactId>spring-context-support</artifactId>
  23. </dependency>
  24. <!-- spring mobile -->
  25. <dependency>
  26. <groupId>org.springframework.mobile</groupId>
  27. <artifactId>spring-mobile-device</artifactId>
  28. </dependency>
  29. <!-- log4j -->
  30. <dependency>
  31. <groupId>log4j</groupId>
  32. <artifactId>log4j</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>commons-logging</groupId>
  36. <artifactId>commons-logging</artifactId>
  37. <version>1.1.1</version>
  38. </dependency>
  39. <!-- fastjson -->
  40. <dependency>
  41. <groupId>com.alibaba</groupId>
  42. <artifactId>fastjson</artifactId>
  43. </dependency>
  44. <!-- file upload -->
  45. <dependency>
  46. <groupId>commons-fileupload</groupId>
  47. <artifactId>commons-fileupload</artifactId>
  48. <version>1.3.2</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>javax.servlet</groupId>
  52. <artifactId>servlet-api</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.alibaba</groupId>
  56. <artifactId>druid</artifactId>
  57. <version>1.1.6</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework</groupId>
  61. <artifactId>spring-orm</artifactId>
  62. </dependency>
  63. <!-- jpa -->
  64. <dependency>
  65. <groupId>org.springframework.data</groupId>
  66. <artifactId>spring-data-jpa</artifactId>
  67. </dependency>
  68. <!-- hibernate -->
  69. <dependency>
  70. <groupId>org.hibernate</groupId>
  71. <artifactId>hibernate-core</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.hibernate</groupId>
  75. <artifactId>hibernate-entitymanager</artifactId>
  76. <exclusions>
  77. <exclusion>
  78. <groupId>cglib</groupId>
  79. <artifactId>cglib</artifactId>
  80. </exclusion>
  81. <exclusion>
  82. <groupId>dom4j</groupId>
  83. <artifactId>dom4j</artifactId>
  84. </exclusion>
  85. </exclusions>
  86. </dependency>
  87. <dependency>
  88. <groupId>commons-collections</groupId>
  89. <artifactId>commons-collections</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.hibernate</groupId>
  93. <artifactId>hibernate-validator</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.aspectj</groupId>
  97. <artifactId>aspectjrt</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.aspectj</groupId>
  101. <artifactId>aspectjweaver</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.commons</groupId>
  105. <artifactId>commons-lang3</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>javax.validation</groupId>
  109. <artifactId>validation-api</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>javax.transaction</groupId>
  113. <artifactId>jta</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.hibernate</groupId>
  117. <artifactId>hibernate-ehcache</artifactId>
  118. </dependency>
  119. <!-- hibernate end -->
  120. <!-- mysql -->
  121. <dependency>
  122. <groupId>mysql</groupId>
  123. <artifactId>mysql-connector-java</artifactId>
  124. <version>5.1.21</version>
  125. </dependency>
  126. <!--oracle-->
  127. <dependency>
  128. <groupId>com.oracle</groupId>
  129. <artifactId>ojdbc6</artifactId>
  130. </dependency>
  131. <!-- mysql -->
  132. <dependency>
  133. <groupId>mysql</groupId>
  134. <artifactId>mysql-connector-java</artifactId>
  135. <version>5.1.21</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.httpcomponents</groupId>
  139. <artifactId>httpclient</artifactId>
  140. <version>4.5.2</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.uas.platform</groupId>
  144. <artifactId>platform-core</artifactId>
  145. <version>0.0.1-SNAPSHOT</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.uas.account</groupId>
  149. <artifactId>sso-core</artifactId>
  150. <version>0.0.1-SNAPSHOT</version>
  151. </dependency>
  152. <!-- jxls -->
  153. <dependency>
  154. <groupId>net.sf.jxls</groupId>
  155. <artifactId>jxls-core</artifactId>
  156. <version>1.0.4</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>net.sf.jxls</groupId>
  160. <artifactId>jxls-reader</artifactId>
  161. <version>1.0.4</version>
  162. </dependency>
  163. <!-- redis -->
  164. <dependency>
  165. <groupId>redis.clients</groupId>
  166. <artifactId>jedis</artifactId>
  167. <version>2.7.3</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework.data</groupId>
  171. <artifactId>spring-data-redis</artifactId>
  172. <version>1.6.0.RELEASE</version>
  173. </dependency>
  174. <!-- 邮件 -->
  175. <dependency>
  176. <groupId>com.uas.message</groupId>
  177. <artifactId>message-mail-api</artifactId>
  178. <version>0.0.1</version>
  179. </dependency>
  180. <!-- dubbo -->
  181. <dependency>
  182. <groupId>com.alibaba</groupId>
  183. <artifactId>dubbo</artifactId>
  184. <exclusions>
  185. <exclusion>
  186. <groupId>javax.servlet</groupId>
  187. <artifactId>javax.servlet-api</artifactId>
  188. </exclusion>
  189. <exclusion>
  190. <groupId>org.apache.httpcomponents</groupId>
  191. <artifactId>httpcore</artifactId>
  192. </exclusion>
  193. </exclusions>
  194. </dependency>
  195. <dependency>
  196. <groupId>com.github.sgroschupf</groupId>
  197. <artifactId>zkclient</artifactId>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.apache.poi</groupId>
  201. <artifactId>poi</artifactId>
  202. <version>3.17</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>net.sf.jxls</groupId>
  206. <artifactId>jxls-core</artifactId>
  207. <version>1.0.4</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.fasterxml.jackson.core</groupId>
  211. <artifactId>jackson-annotations</artifactId>
  212. <version>2.9.0</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>com.jcraft</groupId>
  216. <artifactId>jsch</artifactId>
  217. <version>0.1.54</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>ch.ethz.ganymed</groupId>
  221. <artifactId>ganymed-ssh2</artifactId>
  222. <version>262</version>
  223. </dependency>
  224. </dependencies>
  225. <build>
  226. <finalName>b2bManage</finalName>
  227. <plugins>
  228. <plugin>
  229. <groupId>org.codehaus.mojo</groupId>
  230. <artifactId>buildnumber-maven-plugin</artifactId>
  231. <version>1.3</version>
  232. <executions>
  233. <execution>
  234. <phase>validate</phase>
  235. <goals>
  236. <goal>create-timestamp</goal>
  237. </goals>
  238. </execution>
  239. </executions>
  240. <configuration>
  241. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  242. <items>
  243. <item>timestamp</item>
  244. </items>
  245. </configuration>
  246. </plugin>
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-compiler-plugin</artifactId>
  250. <configuration>
  251. <source>1.8</source>
  252. <target>1.8</target>
  253. </configuration>
  254. </plugin>
  255. <plugin>
  256. <groupId>com.samaxes.maven</groupId>
  257. <artifactId>minify-maven-plugin</artifactId>
  258. <version>1.7.4</version>
  259. <!-- 静态文件压缩 -->
  260. <executions>
  261. <execution>
  262. <id>default-minify</id>
  263. <phase>prepare-package</phase>
  264. <configuration>
  265. <charset>UTF-8</charset>
  266. <skipMerge>true</skipMerge>
  267. <closureLanguage>ECMASCRIPT5</closureLanguage>
  268. <closureAngularPass>true</closureAngularPass>
  269. <nosuffix>true</nosuffix>
  270. <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
  271. <cssSourceDir>resources</cssSourceDir>
  272. <cssEngine>YUI</cssEngine>
  273. <jsSourceDir>resources</jsSourceDir>
  274. <jsEngine>CLOSURE</jsEngine>
  275. <cssSourceIncludes>
  276. <cssSourceInclude>css/**/*.css</cssSourceInclude>
  277. <cssSourceInclude>data/**/*.json</cssSourceInclude>
  278. </cssSourceIncludes>
  279. <cssSourceExcludes>
  280. <cssSourceExclude>css/**/*.min.css</cssSourceExclude>
  281. </cssSourceExcludes>
  282. <jsSourceIncludes>
  283. <jsSourceInclude>js/**/*.js</jsSourceInclude>
  284. </jsSourceIncludes>
  285. <jsSourceExcludes>
  286. <jsSourceExclude>js/**/*.min.js</jsSourceExclude>
  287. </jsSourceExcludes>
  288. </configuration>
  289. <goals>
  290. <goal>minify</goal>
  291. </goals>
  292. </execution>
  293. </executions>
  294. </plugin>
  295. <plugin>
  296. <artifactId>maven-resources-plugin</artifactId>
  297. <executions>
  298. <execution>
  299. <id>copy-resources</id>
  300. <phase>prepare-package</phase>
  301. <goals>
  302. <goal>copy-resources</goal>
  303. </goals>
  304. <configuration>
  305. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  306. <overwrite>false</overwrite>
  307. <resources>
  308. <resource>
  309. <directory>${basedir}/src/main/webapp</directory>
  310. </resource>
  311. </resources>
  312. </configuration>
  313. </execution>
  314. </executions>
  315. </plugin>
  316. <plugin>
  317. <groupId>com.uas.plugins</groupId>
  318. <artifactId>static-maven-plugin</artifactId>
  319. <version>0.0.2-SNAPSHOT</version>
  320. <!-- 静态资源分离 -->
  321. <executions>
  322. <execution>
  323. <id>default-static</id>
  324. <phase>prepare-package</phase>
  325. <configuration>
  326. <pathMatcher>static</pathMatcher>
  327. <staticUrl>static</staticUrl>
  328. <webappDir>${project.build.directory}/minify</webappDir>
  329. <sourceDir>/</sourceDir>
  330. <targetDir>${project.build.directory}/statics</targetDir>
  331. <staticDir>/</staticDir>
  332. <sourceIncludes>
  333. <sourceInclude>resources/js/**/*.js</sourceInclude>
  334. <sourceInclude>resources/data/**/*.json</sourceInclude>
  335. <sourceInclude>resources/tpl/**/*.html</sourceInclude>
  336. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  337. </sourceIncludes>
  338. http://static.ubtob.com/css/index.css?_v=1450321871828
  339. <versionSuffix>
  340. <suffix>?_v=${timestamp}</suffix>
  341. <exclude>*/require.js,*.min.js,*.min.css</exclude>
  342. </versionSuffix>
  343. </configuration>
  344. <goals>
  345. <goal>static</goal>
  346. </goals>
  347. </execution>
  348. </executions>
  349. </plugin>
  350. <plugin>
  351. <groupId>org.apache.maven.plugins</groupId>
  352. <artifactId>maven-war-plugin</artifactId>
  353. <version>2.4</version>
  354. <configuration>
  355. <webResources>
  356. <resource>
  357. <directory>${project.build.directory}/statics</directory>
  358. </resource>
  359. <resource>
  360. <directory>${project.build.directory}/minify</directory>
  361. </resource>
  362. </webResources>
  363. </configuration>
  364. </plugin>
  365. <plugin>
  366. <groupId>org.apache.tomcat.maven</groupId>
  367. <artifactId>tomcat7-maven-plugin</artifactId>
  368. <version>2.2</version>
  369. <configuration>
  370. <port>80</port>
  371. <path>/</path>
  372. <uriEncoding>utf-8</uriEncoding>
  373. </configuration>
  374. </plugin>
  375. </plugins>
  376. </build>
  377. <organization>
  378. <name>usoft</name>
  379. <url>http://www.usoftchina.com</url>
  380. </organization>
  381. <distributionManagement>
  382. <!-- 发布release仓库 -->
  383. <repository>
  384. <id>platform-release</id>
  385. <name>platform-release</name>
  386. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url>
  387. </repository>
  388. <!-- 发布快照版本 -->
  389. <snapshotRepository>
  390. <id>platform-snapshots</id>
  391. <name>platform-snapshots</name>
  392. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url>
  393. </snapshotRepository>
  394. </distributionManagement>
  395. </project>