pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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>platform-home 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. <dependency>
  132. <groupId>org.apache.httpcomponents</groupId>
  133. <artifactId>httpclient</artifactId>
  134. <version>4.5.2</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.uas.platform</groupId>
  138. <artifactId>platform-core</artifactId>
  139. <version>0.0.1-SNAPSHOT</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.uas.account</groupId>
  143. <artifactId>sso-core</artifactId>
  144. <version>0.0.1-SNAPSHOT</version>
  145. </dependency>
  146. <!-- redis -->
  147. <dependency>
  148. <groupId>redis.clients</groupId>
  149. <artifactId>jedis</artifactId>
  150. <version>2.7.3</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.springframework.data</groupId>
  154. <artifactId>spring-data-redis</artifactId>
  155. <version>1.6.0.RELEASE</version>
  156. </dependency>
  157. </dependencies>
  158. <build>
  159. <finalName>b2bManage</finalName>
  160. <plugins>
  161. <plugin>
  162. <groupId>org.codehaus.mojo</groupId>
  163. <artifactId>buildnumber-maven-plugin</artifactId>
  164. <version>1.3</version>
  165. <executions>
  166. <execution>
  167. <phase>validate</phase>
  168. <goals>
  169. <goal>create-timestamp</goal>
  170. </goals>
  171. </execution>
  172. </executions>
  173. <configuration>
  174. <configuration>
  175. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  176. <items>
  177. <item>timestamp</item>
  178. </items>
  179. </configuration>
  180. </configuration>
  181. </plugin>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-compiler-plugin</artifactId>
  185. <configuration>
  186. <source>1.7</source>
  187. <target>1.7</target>
  188. </configuration>
  189. </plugin>
  190. <plugin>
  191. <groupId>com.samaxes.maven</groupId>
  192. <artifactId>minify-maven-plugin</artifactId>
  193. <version>1.7.4</version>
  194. <!-- 静态文件压缩 -->
  195. <executions>
  196. <execution>
  197. <id>default-minify</id>
  198. <phase>prepare-package</phase>
  199. <configuration>
  200. <charset>UTF-8</charset>
  201. <skipMerge>true</skipMerge>
  202. <closureLanguage>ECMASCRIPT5</closureLanguage>
  203. <closureAngularPass>true</closureAngularPass>
  204. <nosuffix>true</nosuffix>
  205. <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
  206. <cssSourceDir>resources</cssSourceDir>
  207. <cssEngine>YUI</cssEngine>
  208. <jsSourceDir>resources</jsSourceDir>
  209. <jsEngine>CLOSURE</jsEngine>
  210. <cssSourceIncludes>
  211. <cssSourceInclude>css/**/*.css</cssSourceInclude>
  212. <cssSourceInclude>data/**/*.json</cssSourceInclude>
  213. </cssSourceIncludes>
  214. <cssSourceExcludes>
  215. <cssSourceExclude>css/**/*.min.css</cssSourceExclude>
  216. </cssSourceExcludes>
  217. <jsSourceIncludes>
  218. <jsSourceInclude>js/**/*.js</jsSourceInclude>
  219. </jsSourceIncludes>
  220. <jsSourceExcludes>
  221. <jsSourceExclude>js/**/*.min.js</jsSourceExclude>
  222. </jsSourceExcludes>
  223. </configuration>
  224. <goals>
  225. <goal>minify</goal>
  226. </goals>
  227. </execution>
  228. </executions>
  229. </plugin>
  230. <plugin>
  231. <artifactId>maven-resources-plugin</artifactId>
  232. <executions>
  233. <execution>
  234. <id>copy-resources</id>
  235. <phase>prepare-package</phase>
  236. <goals>
  237. <goal>copy-resources</goal>
  238. </goals>
  239. <configuration>
  240. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  241. <overwrite>false</overwrite>
  242. <resources>
  243. <resource>
  244. <directory>${basedir}/src/main/webapp</directory>
  245. </resource>
  246. </resources>
  247. </configuration>
  248. </execution>
  249. </executions>
  250. </plugin>
  251. <plugin>
  252. <groupId>com.uas.plugins</groupId>
  253. <artifactId>static-maven-plugin</artifactId>
  254. <version>0.0.2-SNAPSHOT</version>
  255. <!-- 静态资源分离 -->
  256. <executions>
  257. <execution>
  258. <id>default-static</id>
  259. <phase>prepare-package</phase>
  260. <configuration>
  261. <pathMatcher>static</pathMatcher>
  262. <staticUrl>static</staticUrl>
  263. <webappDir>${project.build.directory}/minify</webappDir>
  264. <sourceDir>/</sourceDir>
  265. <targetDir>${project.build.directory}/statics</targetDir>
  266. <staticDir>/</staticDir>
  267. <sourceIncludes>
  268. <sourceInclude>resources/js/**/*.js</sourceInclude>
  269. <sourceInclude>resources/data/**/*.json</sourceInclude>
  270. <sourceInclude>resources/tpl/**/*.html</sourceInclude>
  271. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  272. </sourceIncludes>
  273. http://static.ubtob.com/css/index.css?_v=1450321871828
  274. <versionSuffix>
  275. <suffix>?_v=${timestamp}</suffix>
  276. <exclude>*/require.js,*.min.js,*.min.css</exclude>
  277. </versionSuffix>
  278. </configuration>
  279. <goals>
  280. <goal>static</goal>
  281. </goals>
  282. </execution>
  283. </executions>
  284. </plugin>
  285. <plugin>
  286. <groupId>org.apache.maven.plugins</groupId>
  287. <artifactId>maven-war-plugin</artifactId>
  288. <version>2.4</version>
  289. <configuration>
  290. <webResources>
  291. <resource>
  292. <directory>${project.build.directory}/statics</directory>
  293. </resource>
  294. <resource>
  295. <directory>${project.build.directory}/minify</directory>
  296. </resource>
  297. </webResources>
  298. </configuration>
  299. </plugin>
  300. <plugin>
  301. <groupId>org.apache.tomcat.maven</groupId>
  302. <artifactId>tomcat7-maven-plugin</artifactId>
  303. <version>2.2</version>
  304. <configuration>
  305. <port>80</port>
  306. <path>/</path>
  307. <uriEncoding>utf-8</uriEncoding>
  308. </configuration>
  309. </plugin>
  310. </plugins>
  311. </build>
  312. <organization>
  313. <name>usoft</name>
  314. <url>http://www.usoftchina.com</url>
  315. </organization>
  316. <distributionManagement>
  317. <!-- 发布release仓库 -->
  318. <repository>
  319. <id>platform-release</id>
  320. <name>platform-release</name>
  321. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url>
  322. </repository>
  323. <!-- 发布快照版本 -->
  324. <snapshotRepository>
  325. <id>platform-snapshots</id>
  326. <name>platform-snapshots</name>
  327. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url>
  328. </snapshotRepository>
  329. </distributionManagement>
  330. </project>