pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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.6.6</version.jackson>
  36. <version.myCommon>1.0.0</version.myCommon>
  37. <version.spring>4.3.3.RELEASE</version.spring>
  38. </properties>
  39. <!--dependencyManagement作用子配置不写版本默认继承父配置-->
  40. <dependencyManagement>
  41. <dependencies>
  42. <!--自己的封装 common -->
  43. <dependency>
  44. <groupId>com.yihu.jw</groupId>
  45. <artifactId>common-swagger</artifactId>
  46. <version>${version.myCommon}</version>
  47. </dependency>
  48. <!--springCloud start-->
  49. <dependency>
  50. <groupId>org.springframework.cloud</groupId>
  51. <artifactId>spring-cloud-starter-eureka-server</artifactId>
  52. <version>${version.springCloud}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.cloud</groupId>
  56. <artifactId>spring-cloud-config-server</artifactId>
  57. <version>${version.springCloud}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-starter-ribbon</artifactId>
  62. <version>${version.springCloud}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.cloud</groupId>
  66. <artifactId>spring-cloud-starter-zuul</artifactId>
  67. <version>${version.springCloud}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.cloud</groupId>
  71. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  72. <version>${version.springCloud}</version>
  73. </dependency>
  74. <!--路由网关-->
  75. <dependency>
  76. <groupId>org.springframework.cloud</groupId>
  77. <artifactId>spring-cloud-starter-zuul</artifactId>
  78. <version>${version.springCloud}</version>
  79. </dependency>
  80. <!--断路由-->
  81. <dependency>
  82. <groupId>org.springframework.cloud</groupId>
  83. <artifactId>spring-cloud-starter-hystrix</artifactId>
  84. <version>${version.springCloud}</version>
  85. </dependency>
  86. <!--hystrix仪表盘-->
  87. <dependency>
  88. <groupId>org.springframework.cloud</groupId>
  89. <artifactId>spring-cloud-netflix-hystrix-dashboard</artifactId>
  90. <version>${version.springCloud}</version>
  91. </dependency>
  92. <!--配置服务客户端-->
  93. <dependency>
  94. <groupId>org.springframework.cloud</groupId>
  95. <artifactId>spring-cloud-starter-config</artifactId>
  96. <version>${version.springCloud}</version>
  97. </dependency>
  98. <!--发现服务服务客户端-->
  99. <dependency>
  100. <groupId>org.springframework.cloud</groupId>
  101. <artifactId>spring-cloud-starter-eureka</artifactId>
  102. <version>${version.springCloud}</version>
  103. </dependency>
  104. <!--收集集群中的数据-->
  105. <dependency>
  106. <groupId>org.springframework.cloud</groupId>
  107. <artifactId>spring-cloud-starter-turbine</artifactId>
  108. <version>${version.springCloud}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.springframework.cloud</groupId>
  112. <artifactId>spring-cloud-starter-feign</artifactId>
  113. <version>${version.springCloud}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.springframework.cloud</groupId>
  117. <artifactId>spring-cloud-starter</artifactId>
  118. <version>${version.springCloud.start}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.springframework.cloud</groupId>
  122. <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
  123. <version>${version.springCloud.start}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework.cloud</groupId>
  127. <artifactId>spring-cloud-starter-zipkin</artifactId>
  128. <version>${version.springCloud.start}</version>
  129. </dependency>
  130. <!--springCloud end-->
  131. <!--springBoot start-->
  132. <dependency>
  133. <groupId>org.springframework.boot</groupId>
  134. <artifactId>spring-boot</artifactId>
  135. <version>${version.springBoot}</version>
  136. </dependency>
  137. <!--web模块-->
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-web</artifactId>
  141. <version>${version.springBoot}</version>
  142. </dependency>
  143. <!--监控工程得到一些指标-->
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-actuator</artifactId>
  147. <version>${version.springBoot}</version>
  148. </dependency>
  149. <!--自动注入模块-->
  150. <dependency>
  151. <groupId>org.springframework.boot</groupId>
  152. <artifactId>spring-boot-autoconfigure</artifactId>
  153. <version>${version.springBoot}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.springframework.boot</groupId>
  157. <artifactId>spring-boot-configuration-processor</artifactId>
  158. <version>${version.springBoot}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-starter-data-jpa</artifactId>
  163. <version>${version.springBoot}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.springframework.boot</groupId>
  167. <artifactId>spring-boot-starter-websocket</artifactId>
  168. <version>${version.springBoot}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.springframework.boot</groupId>
  172. <artifactId>spring-boot-starter-security</artifactId>
  173. <version>${version.springBoot}</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-starter-mail</artifactId>
  178. <version>${version.springBoot}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-starter-logging</artifactId>
  183. <version>${version.springBoot}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.springframework.boot</groupId>
  187. <artifactId>spring-boot-starter-tomcat</artifactId>
  188. <version>${version.springBoot}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.springframework.boot</groupId>
  192. <artifactId>spring-boot-starter-jdbc</artifactId>
  193. <version>${version.springBoot}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.springframework.boot</groupId>
  197. <artifactId>spring-boot-starter-aop</artifactId>
  198. <version>${version.springBoot}</version>
  199. </dependency>
  200. <!--springBoot end-->
  201. <!--spring start-->
  202. <dependency>
  203. <groupId>org.springframework</groupId>
  204. <artifactId>spring-webmvc</artifactId>
  205. <version>${version.spring}</version>
  206. </dependency>
  207. <!--spring end-->
  208. <!--数据库驱动 start-->
  209. <dependency>
  210. <groupId>mysql</groupId>
  211. <artifactId>mysql-connector-java</artifactId>
  212. <version>${version.mysql}</version>
  213. </dependency>
  214. <!--数据库驱动 end-->
  215. <!--fastJson start-->
  216. <dependency>
  217. <groupId>com.fasterxml.jackson.core</groupId>
  218. <artifactId>jackson-annotations</artifactId>
  219. <version>${version.jackson}</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>com.fasterxml.jackson.core</groupId>
  223. <artifactId>jackson-core</artifactId>
  224. <version>${version.jackson}</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>com.fasterxml.jackson.core</groupId>
  228. <artifactId>jackson-databind</artifactId>
  229. <version>${version.jackson}</version>
  230. </dependency>
  231. <!--fastJson end-->
  232. </dependencies>
  233. </dependencyManagement>
  234. <build>
  235. <pluginManagement>
  236. <plugins>
  237. <!--打成war包插件 还需要
  238. 1.配置类继承SpringBootServletInitializer
  239. 2.把所有tomcat相关的包的生命周期改成provide
  240. start-->
  241. <plugin>
  242. <artifactId>maven-war-plugin</artifactId>
  243. <configuration>
  244. <failOnMissingWebXml>false</failOnMissingWebXml>
  245. </configuration>
  246. </plugin>
  247. <!--打成war包插件 end-->
  248. <!--springboot插件 start-->
  249. <plugin>
  250. <groupId>org.springframework.boot</groupId>
  251. <artifactId>spring-boot-maven-plugin</artifactId>
  252. </plugin>
  253. <!--springboot插件 en-->
  254. <!--编译插件 start-->
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-compiler-plugin</artifactId>
  258. <configuration>
  259. <source>1.8</source>
  260. <target>1.8</target>
  261. </configuration>
  262. <version>3.1</version>
  263. </plugin>
  264. <!--编译插件 end-->
  265. </plugins>
  266. </pluginManagement>
  267. </build>
  268. </project>