pom.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.uas.account</groupId>
  8. <artifactId>account-parent</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>account-server</artifactId>
  12. <packaging>war</packaging>
  13. <name>account-server</name>
  14. <url>http://maven.apache.org</url>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.uas.account</groupId>
  18. <artifactId>sso-core</artifactId>
  19. </dependency>
  20. <dependency>
  21. <groupId>com.uas.account</groupId>
  22. <artifactId>account-common</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.apache.shiro</groupId>
  26. <artifactId>shiro-core</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>log4j</groupId>
  30. <artifactId>log4j</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework</groupId>
  34. <artifactId>spring-webmvc</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.mobile</groupId>
  38. <artifactId>spring-mobile-device</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>javax.servlet</groupId>
  42. <artifactId>javax.servlet-api</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>jstl</groupId>
  46. <artifactId>jstl</artifactId>
  47. </dependency>
  48. <!-- jdbc -->
  49. <dependency>
  50. <groupId>com.oracle</groupId>
  51. <artifactId>ojdbc6</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework</groupId>
  55. <artifactId>spring-jdbc</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework</groupId>
  59. <artifactId>spring-tx</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.alibaba</groupId>
  63. <artifactId>druid</artifactId>
  64. </dependency>
  65. <!-- dubbo -->
  66. <dependency>
  67. <groupId>com.alibaba</groupId>
  68. <artifactId>dubbo</artifactId>
  69. <exclusions>
  70. <exclusion>
  71. <groupId>javax.servlet</groupId>
  72. <artifactId>javax.servlet-api</artifactId>
  73. </exclusion>
  74. <exclusion>
  75. <groupId>org.apache.httpcomponents</groupId>
  76. <artifactId>httpcore</artifactId>
  77. </exclusion>
  78. </exclusions>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.zookeeper</groupId>
  82. <artifactId>zookeeper</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.github.sgroschupf</groupId>
  86. <artifactId>zkclient</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.caucho</groupId>
  90. <artifactId>hessian</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.uas.dfs</groupId>
  94. <artifactId>dfs-api</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>commons-fileupload</groupId>
  98. <artifactId>commons-fileupload</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.hibernate</groupId>
  102. <artifactId>hibernate-validator</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>redis.clients</groupId>
  106. <artifactId>jedis</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.springframework.data</groupId>
  110. <artifactId>spring-data-redis</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.uas.message</groupId>
  114. <artifactId>message-mail-api</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.uas.message</groupId>
  118. <artifactId>message-sms-api</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.belerweb</groupId>
  122. <artifactId>pinyin4j</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.google.zxing</groupId>
  126. <artifactId>core</artifactId>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.apache.httpcomponents</groupId>
  130. <artifactId>httpmime</artifactId>
  131. <version>4.4</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.httpcomponents</groupId>
  135. <artifactId>httpcore</artifactId>
  136. <version>4.4.5</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.httpcomponents</groupId>
  140. <artifactId>httpclient</artifactId>
  141. <version>4.4</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.mongodb.morphia</groupId>
  145. <artifactId>morphia</artifactId>
  146. <version>0.108</version>
  147. <scope>test</scope>
  148. </dependency>
  149. </dependencies>
  150. <build>
  151. <finalName>account</finalName>
  152. <plugins>
  153. <plugin>
  154. <groupId>org.apache.tomcat.maven</groupId>
  155. <artifactId>tomcat7-maven-plugin</artifactId>
  156. <version>2.2</version>
  157. <configuration>
  158. <port>8080</port>
  159. <path>/</path>
  160. <uriEncoding>utf-8</uriEncoding>
  161. </configuration>
  162. </plugin>
  163. <!-- 在maven生命周期validate阶段生成timestamp -->
  164. <plugin>
  165. <groupId>org.codehaus.mojo</groupId>
  166. <artifactId>buildnumber-maven-plugin</artifactId>
  167. <version>1.3</version>
  168. <executions>
  169. <execution>
  170. <phase>validate</phase>
  171. <goals>
  172. <goal>create-timestamp</goal>
  173. </goals>
  174. </execution>
  175. </executions>
  176. <configuration>
  177. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  178. <items>
  179. <item>timestamp</item>
  180. </items>
  181. </configuration>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-compiler-plugin</artifactId>
  186. <configuration>
  187. <source>1.7</source>
  188. <target>1.7</target>
  189. </configuration>
  190. </plugin>
  191. <plugin>
  192. <groupId>com.samaxes.maven</groupId>
  193. <artifactId>minify-maven-plugin</artifactId>
  194. <version>1.7.4</version>
  195. <!-- 静态文件压缩 -->
  196. <executions>
  197. <execution>
  198. <id>default-minify</id>
  199. <phase>prepare-package</phase>
  200. <configuration>
  201. <charset>UTF-8</charset>
  202. <skipMerge>true</skipMerge>
  203. <closureLanguage>ECMASCRIPT5</closureLanguage>
  204. <closureAngularPass>true</closureAngularPass>
  205. <nosuffix>true</nosuffix>
  206. <webappTargetDir>${project.build.directory}/minify</webappTargetDir>
  207. <cssSourceDir>assets</cssSourceDir>
  208. <cssEngine>YUI</cssEngine>
  209. <jsSourceDir>assets</jsSourceDir>
  210. <jsEngine>CLOSURE</jsEngine>
  211. <cssSourceIncludes>
  212. <cssSourceInclude>css/**/*.css</cssSourceInclude>
  213. <cssSourceInclude>data/**/*.json</cssSourceInclude>
  214. </cssSourceIncludes>
  215. <cssSourceExcludes>
  216. <cssSourceExclude>css/**/*.min.css</cssSourceExclude>
  217. </cssSourceExcludes>
  218. <jsSourceIncludes>
  219. <jsSourceInclude>js/**/*.js</jsSourceInclude>
  220. </jsSourceIncludes>
  221. <jsSourceExcludes>
  222. <jsSourceExclude>js/**/*.min.js</jsSourceExclude>
  223. </jsSourceExcludes>
  224. </configuration>
  225. <goals>
  226. <goal>minify</goal>
  227. </goals>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. <plugin>
  232. <artifactId>maven-resources-plugin</artifactId>
  233. <executions>
  234. <execution>
  235. <id>copy-resources</id>
  236. <phase>prepare-package</phase>
  237. <goals>
  238. <goal>copy-resources</goal>
  239. </goals>
  240. <configuration>
  241. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  242. <overwrite>false</overwrite>
  243. <resources>
  244. <resource>
  245. <directory>${basedir}/src/main/webapp</directory>
  246. </resource>
  247. </resources>
  248. </configuration>
  249. </execution>
  250. </executions>
  251. </plugin>
  252. <plugin>
  253. <groupId>com.uas.plugins</groupId>
  254. <artifactId>static-maven-plugin</artifactId>
  255. <version>0.0.2-SNAPSHOT</version>
  256. <!-- 静态资源分离 -->
  257. <executions>
  258. <execution>
  259. <id>default-static</id>
  260. <phase>prepare-package</phase>
  261. <configuration>
  262. <pathMatcher>static</pathMatcher>
  263. <staticUrl>static</staticUrl>
  264. <webappDir>${project.build.directory}/minify</webappDir>
  265. <sourceDir>/</sourceDir>
  266. <targetDir>${project.build.directory}/statics</targetDir>
  267. <staticDir>/</staticDir>
  268. <sourceIncludes>
  269. <sourceInclude>assets/js/**/*.js</sourceInclude>
  270. <sourceInclude>assets/data/**/*.json</sourceInclude>
  271. <sourceInclude>WEB-INF/views/**/*.jsp</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. </plugins>
  301. <pluginManagement>
  302. <plugins>
  303. <plugin>
  304. <groupId>org.eclipse.m2e</groupId>
  305. <artifactId>lifecycle-mapping</artifactId>
  306. <version>1.0.0</version>
  307. <configuration>
  308. <lifecycleMappingMetadata>
  309. <pluginExecutions>
  310. <pluginExecution>
  311. <pluginExecutionFilter>
  312. <groupId>
  313. org.codehaus.mojo
  314. </groupId>
  315. <artifactId>
  316. buildnumber-maven-plugin
  317. </artifactId>
  318. <versionRange>
  319. [1.3,)
  320. </versionRange>
  321. <goals>
  322. <goal>
  323. create-timestamp
  324. </goal>
  325. </goals>
  326. </pluginExecutionFilter>
  327. <action>
  328. <ignore></ignore>
  329. </action>
  330. </pluginExecution>
  331. </pluginExecutions>
  332. </lifecycleMappingMetadata>
  333. </configuration>
  334. </plugin>
  335. </plugins>
  336. </pluginManagement>
  337. </build>
  338. </project>