pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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.sso</groupId>
  8. <artifactId>sso-parent</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>sso-server</artifactId>
  12. <packaging>war</packaging>
  13. <dependencies>
  14. <dependency>
  15. <groupId>junit</groupId>
  16. <artifactId>junit</artifactId>
  17. <scope>test</scope>
  18. </dependency>
  19. <!-- spring boot -->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-actuator</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-data-jpa</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-security</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework</groupId>
  38. <artifactId>spring-tx</artifactId>
  39. </dependency>
  40. <!-- Redis session -->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-data-redis</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.session</groupId>
  47. <artifactId>spring-session</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>mysql</groupId>
  51. <artifactId>mysql-connector-java</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.alibaba</groupId>
  55. <artifactId>druid</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.alibaba</groupId>
  59. <artifactId>fastjson</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.uas.message</groupId>
  63. <artifactId>message-mail-api</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.uas.message</groupId>
  67. <artifactId>message-sms-api</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.uas.account</groupId>
  71. <artifactId>sso-core</artifactId>
  72. <version>0.0.1</version>
  73. <exclusions>
  74. <exclusion>
  75. <artifactId>sso-core</artifactId>
  76. <groupId>com.uas.account</groupId>
  77. </exclusion>
  78. </exclusions>
  79. </dependency>
  80. <dependency>
  81. <groupId>com.uas.sso</groupId>
  82. <artifactId>sso-common</artifactId>
  83. <version>0.0.1-SNAPSHOT</version>
  84. </dependency>
  85. <!-- dubbo -->
  86. <dependency>
  87. <groupId>com.alibaba</groupId>
  88. <artifactId>dubbo</artifactId>
  89. <exclusions>
  90. <exclusion>
  91. <groupId>javax.servlet</groupId>
  92. <artifactId>javax.servlet-api</artifactId>
  93. </exclusion>
  94. <exclusion>
  95. <groupId>org.apache.httpcomponents</groupId>
  96. <artifactId>httpcore</artifactId>
  97. </exclusion>
  98. </exclusions>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.zookeeper</groupId>
  102. <artifactId>zookeeper</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.github.sgroschupf</groupId>
  106. <artifactId>zkclient</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.uas.dfs</groupId>
  110. <artifactId>dfs-api</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.belerweb</groupId>
  114. <artifactId>pinyin4j</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>commons-fileupload</groupId>
  118. <artifactId>commons-fileupload</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.httpcomponents</groupId>
  122. <artifactId>httpmime</artifactId>
  123. <version>4.4</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.httpcomponents</groupId>
  127. <artifactId>httpcore</artifactId>
  128. <version>4.4.5</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.apache.httpcomponents</groupId>
  132. <artifactId>httpclient</artifactId>
  133. <version>4.4</version>
  134. </dependency>
  135. </dependencies>
  136. <build>
  137. <plugins>
  138. <!-- 在maven生命周期validate阶段生成timestamp -->
  139. <plugin>
  140. <groupId>org.codehaus.mojo</groupId>
  141. <artifactId>buildnumber-maven-plugin</artifactId>
  142. <version>1.3</version>
  143. <executions>
  144. <execution>
  145. <phase>validate</phase>
  146. <goals>
  147. <goal>create-timestamp</goal>
  148. </goals>
  149. </execution>
  150. </executions>
  151. <configuration>
  152. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  153. <items>
  154. <item>timestamp</item>
  155. </items>
  156. </configuration>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-compiler-plugin</artifactId>
  161. <configuration>
  162. <source>1.7</source>
  163. <target>1.7</target>
  164. <compilerArguments>
  165. <verbose />
  166. <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
  167. </compilerArguments>
  168. </configuration>
  169. </plugin>
  170. <plugin>
  171. <artifactId>maven-resources-plugin</artifactId>
  172. <executions>
  173. <execution>
  174. <id>copy-resources</id>
  175. <phase>prepare-package</phase>
  176. <goals>
  177. <goal>copy-resources</goal>
  178. </goals>
  179. <configuration>
  180. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  181. <overwrite>false</overwrite>
  182. <resources>
  183. <resource>
  184. <directory>${basedir}/src/main/webapp</directory>
  185. </resource>
  186. </resources>
  187. </configuration>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <groupId>com.uas.plugins</groupId>
  193. <artifactId>static-maven-plugin</artifactId>
  194. <version>0.0.2-SNAPSHOT</version>
  195. <!-- 静态资源分离 -->
  196. <executions>
  197. <execution>
  198. <id>default-static</id>
  199. <phase>prepare-package</phase>
  200. <configuration>
  201. <staticUrl>static</staticUrl>
  202. <webappDir>${project.build.directory}/minify</webappDir>
  203. <sourceDir>/</sourceDir>
  204. <targetDir>${project.build.directory}/statics</targetDir>
  205. <staticDir>/</staticDir>
  206. <sourceIncludes>
  207. <sourceInclude>resources/js/**/*.js</sourceInclude>
  208. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  209. </sourceIncludes>
  210. <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
  211. <versionSuffix>
  212. <suffix>?_v=${timestamp}</suffix>
  213. <exclude>**/lib/**/*</exclude>
  214. </versionSuffix>
  215. </configuration>
  216. <goals>
  217. <goal>static</goal>
  218. </goals>
  219. </execution>
  220. </executions>
  221. </plugin>
  222. <plugin>
  223. <groupId>org.apache.maven.plugins</groupId>
  224. <artifactId>maven-war-plugin</artifactId>
  225. <configuration>
  226. <webResources>
  227. <resource>
  228. <directory>${project.build.directory}/statics</directory>
  229. </resource>
  230. <resource>
  231. <directory>${project.build.directory}/minify</directory>
  232. </resource>
  233. </webResources>
  234. </configuration>
  235. </plugin>
  236. <plugin>
  237. <groupId>org.springframework.boot</groupId>
  238. <artifactId>spring-boot-maven-plugin</artifactId>
  239. </plugin>
  240. </plugins>
  241. <pluginManagement>
  242. <plugins>
  243. <plugin>
  244. <groupId>org.eclipse.m2e</groupId>
  245. <artifactId>lifecycle-mapping</artifactId>
  246. <version>1.0.0</version>
  247. <configuration>
  248. <lifecycleMappingMetadata>
  249. <pluginExecutions>
  250. <pluginExecution>
  251. <pluginExecutionFilter>
  252. <groupId>
  253. org.codehaus.mojo
  254. </groupId>
  255. <artifactId>
  256. buildnumber-maven-plugin
  257. </artifactId>
  258. <versionRange>
  259. [1.3,)
  260. </versionRange>
  261. <goals>
  262. <goal>
  263. create-timestamp
  264. </goal>
  265. </goals>
  266. </pluginExecutionFilter>
  267. <action>
  268. <ignore></ignore>
  269. </action>
  270. </pluginExecution>
  271. </pluginExecutions>
  272. </lifecycleMappingMetadata>
  273. </configuration>
  274. </plugin>
  275. </plugins>
  276. </pluginManagement>
  277. </build>
  278. </project>