pom.xml 12 KB

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