pom.xml 10 KB

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