pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.yihu.jw</groupId>
  7. <artifactId>svr-lib-parent-pom</artifactId>
  8. <version>1.0.0</version>
  9. <packaging>pom</packaging>
  10. <developers>
  11. <developer>
  12. <id>cwd</id>
  13. <name>陈伟达</name>
  14. <email>494679975@qq.com</email>
  15. <organizationUrl>localhost</organizationUrl>
  16. <roles>
  17. <role>Project programmer</role>
  18. </roles>
  19. </developer>
  20. </developers>
  21. <modules>
  22. <module>../svr-configuration</module> <!--配置服务-->
  23. <module>../svr-discovery</module><!--发现服务-->
  24. <!--业务微服务-->
  25. <module>../svr/svr-base</module><!--基础微服务-->
  26. <module>../svr/svr-quota</module><!--统计微服务-->
  27. <!--网关-->
  28. <module>../web-gateway</module><!--web网关-->
  29. </modules>
  30. <properties>
  31. <version.springCloud>1.3.0.RELEASE</version.springCloud>
  32. <version.springCloud.start>1.2.0.RELEASE</version.springCloud.start>
  33. <version.springBoot>1.5.3.RELEASE</version.springBoot>
  34. <version.mysql>5.1.38</version.mysql>
  35. <version.jackson>2.8.1</version.jackson>
  36. <version.myCommon>1.0.0</version.myCommon>
  37. <version.spring>4.3.3.RELEASE</version.spring>
  38. <version.zipkin>1.24.0</version.zipkin>
  39. </properties>
  40. <!--dependencyManagement作用子配置不写版本默认继承父配置-->
  41. <dependencyManagement>
  42. <dependencies>
  43. <!--自己的封装 common -->
  44. <dependency>
  45. <groupId>com.yihu.jw</groupId>
  46. <artifactId>common-swagger</artifactId>
  47. <version>${version.myCommon}</version>
  48. </dependency>
  49. <!--springCloud start-->
  50. <dependency>
  51. <groupId>org.springframework.cloud</groupId>
  52. <artifactId>spring-cloud-starter-eureka-server</artifactId>
  53. <version>${version.springCloud}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.cloud</groupId>
  57. <artifactId>spring-cloud-config-server</artifactId>
  58. <version>${version.springCloud}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.cloud</groupId>
  62. <artifactId>spring-cloud-starter-ribbon</artifactId>
  63. <version>${version.springCloud}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.cloud</groupId>
  67. <artifactId>spring-cloud-starter-zuul</artifactId>
  68. <version>${version.springCloud}</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework.cloud</groupId>
  72. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  73. <version>${version.springCloud}</version>
  74. </dependency>
  75. <!--路由网关-->
  76. <dependency>
  77. <groupId>org.springframework.cloud</groupId>
  78. <artifactId>spring-cloud-starter-zuul</artifactId>
  79. <version>${version.springCloud}</version>
  80. </dependency>
  81. <!--断路由-->
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-starter-hystrix</artifactId>
  85. <version>${version.springCloud}</version>
  86. </dependency>
  87. <!--hystrix仪表盘-->
  88. <dependency>
  89. <groupId>org.springframework.cloud</groupId>
  90. <artifactId>spring-cloud-netflix-hystrix-dashboard</artifactId>
  91. <version>${version.springCloud}</version>
  92. </dependency>
  93. <!--配置服务客户端-->
  94. <dependency>
  95. <groupId>org.springframework.cloud</groupId>
  96. <artifactId>spring-cloud-starter-config</artifactId>
  97. <version>${version.springCloud}</version>
  98. </dependency>
  99. <!--发现服务服务客户端-->
  100. <dependency>
  101. <groupId>org.springframework.cloud</groupId>
  102. <artifactId>spring-cloud-starter-eureka</artifactId>
  103. <version>${version.springCloud}</version>
  104. </dependency>
  105. <!--收集集群中的数据-->
  106. <dependency>
  107. <groupId>org.springframework.cloud</groupId>
  108. <artifactId>spring-cloud-starter-turbine</artifactId>
  109. <version>${version.springCloud}</version>
  110. </dependency>
  111. <!--配置服务消息总线-->
  112. <dependency>
  113. <groupId>org.springframework.cloud</groupId>
  114. <artifactId>spring-cloud-starter-bus-kafka</artifactId>
  115. <version>${version.springCloud}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework.cloud</groupId>
  119. <artifactId>spring-cloud-starter-feign</artifactId>
  120. <version>${version.springCloud}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.springframework.cloud</groupId>
  124. <artifactId>spring-cloud-starter</artifactId>
  125. <version>${version.springCloud.start}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework.cloud</groupId>
  129. <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
  130. <version>${version.springCloud.start}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.springframework.cloud</groupId>
  134. <artifactId>spring-cloud-sleuth-zipkin</artifactId>
  135. <version>${version.springCloud.start}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework.cloud</groupId>
  139. <artifactId>spring-cloud-starter-sleuth</artifactId>
  140. <version>${version.springCloud.start}</version>
  141. </dependency>
  142. <!--springCloud end-->
  143. <!--springBoot start-->
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot</artifactId>
  147. <version>${version.springBoot}</version>
  148. </dependency>
  149. <!--web模块-->
  150. <dependency>
  151. <groupId>org.springframework.boot</groupId>
  152. <artifactId>spring-boot-starter-web</artifactId>
  153. <version>${version.springBoot}</version>
  154. </dependency>
  155. <!--监控工程得到一些指标-->
  156. <dependency>
  157. <groupId>org.springframework.boot</groupId>
  158. <artifactId>spring-boot-starter-actuator</artifactId>
  159. <version>${version.springBoot}</version>
  160. </dependency>
  161. <!--自动注入模块-->
  162. <dependency>
  163. <groupId>org.springframework.boot</groupId>
  164. <artifactId>spring-boot-autoconfigure</artifactId>
  165. <version>${version.springBoot}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.springframework.boot</groupId>
  169. <artifactId>spring-boot-configuration-processor</artifactId>
  170. <version>${version.springBoot}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.springframework.boot</groupId>
  174. <artifactId>spring-boot-starter-data-jpa</artifactId>
  175. <version>${version.springBoot}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-starter-websocket</artifactId>
  180. <version>${version.springBoot}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.springframework.boot</groupId>
  184. <artifactId>spring-boot-starter-security</artifactId>
  185. <version>${version.springBoot}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-starter-mail</artifactId>
  190. <version>${version.springBoot}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.springframework.boot</groupId>
  194. <artifactId>spring-boot-starter-logging</artifactId>
  195. <version>${version.springBoot}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.springframework.boot</groupId>
  199. <artifactId>spring-boot-starter-tomcat</artifactId>
  200. <version>${version.springBoot}</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.springframework.boot</groupId>
  204. <artifactId>spring-boot-starter-jdbc</artifactId>
  205. <version>${version.springBoot}</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.springframework.boot</groupId>
  209. <artifactId>spring-boot-starter-aop</artifactId>
  210. <version>${version.springBoot}</version>
  211. </dependency>
  212. <!--springBoot end-->
  213. <!--spring start-->
  214. <dependency>
  215. <groupId>org.springframework</groupId>
  216. <artifactId>spring-webmvc</artifactId>
  217. <version>${version.spring}</version>
  218. </dependency>
  219. <!--spring end-->
  220. <!--数据库驱动 start-->
  221. <dependency>
  222. <groupId>mysql</groupId>
  223. <artifactId>mysql-connector-java</artifactId>
  224. <version>${version.mysql}</version>
  225. </dependency>
  226. <!--数据库驱动 end-->
  227. <!--fastJson start-->
  228. <dependency>
  229. <groupId>com.fasterxml.jackson.core</groupId>
  230. <artifactId>jackson-annotations</artifactId>
  231. <version>${version.jackson}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>com.fasterxml.jackson.core</groupId>
  235. <artifactId>jackson-core</artifactId>
  236. <version>${version.jackson}</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>com.fasterxml.jackson.core</groupId>
  240. <artifactId>jackson-databind</artifactId>
  241. <version>${version.jackson}</version>
  242. </dependency>
  243. <!--fastJson end-->
  244. <!--zipkin 日志追踪 start-->
  245. <dependency>
  246. <groupId>io.zipkin.java</groupId>
  247. <artifactId>zipkin-server</artifactId>
  248. <version>${version.zipkin}</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>io.zipkin.java</groupId>
  252. <artifactId>zipkin-autoconfigure-ui</artifactId>
  253. <version>${version.zipkin}</version>
  254. </dependency>
  255. <!--zipkin end-->
  256. </dependencies>
  257. </dependencyManagement>
  258. <build>
  259. <pluginManagement>
  260. <plugins>
  261. <!--打成war包插件 还需要
  262. 1.配置类继承SpringBootServletInitializer
  263. 2.把所有tomcat相关的包的生命周期改成provide
  264. start-->
  265. <plugin>
  266. <artifactId>maven-war-plugin</artifactId>
  267. <configuration>
  268. <failOnMissingWebXml>false</failOnMissingWebXml>
  269. </configuration>
  270. </plugin>
  271. <!--打成war包插件 end-->
  272. <!--springboot插件 start-->
  273. <plugin>
  274. <groupId>org.springframework.boot</groupId>
  275. <artifactId>spring-boot-maven-plugin</artifactId>
  276. </plugin>
  277. <!--springboot插件 en-->
  278. <!--编译插件 start-->
  279. <plugin>
  280. <groupId>org.apache.maven.plugins</groupId>
  281. <artifactId>maven-compiler-plugin</artifactId>
  282. <configuration>
  283. <source>1.8</source>
  284. <target>1.8</target>
  285. </configuration>
  286. <version>3.1</version>
  287. </plugin>
  288. <!--编译插件 end-->
  289. </plugins>
  290. </pluginManagement>
  291. </build>
  292. </project>