pom.xml 14 KB

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