pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.ym</groupId>
  6. <artifactId>mec</artifactId>
  7. <version>1.0</version>
  8. <packaging>pom</packaging>
  9. <name>mec</name>
  10. <url>http://maven.apache.org</url>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <maven.compiler.source>1.8</maven.compiler.source>
  15. <maven.compiler.target>1.8</maven.compiler.target>
  16. <spring-boot.version>2.1.6.RELEASE</spring-boot.version>
  17. <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
  18. <zipkin.version>2.12.2</zipkin.version>
  19. </properties>
  20. <dependencyManagement>
  21. <dependencies>
  22. <!--支持Spring Boot 2.1.X -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-dependencies</artifactId>
  26. <version>${spring-boot.version}</version>
  27. <type>pom</type>
  28. <scope>import</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.cloud</groupId>
  32. <artifactId>spring-cloud-dependencies</artifactId>
  33. <version>${spring-cloud.version}</version>
  34. <type>pom</type>
  35. <scope>import</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>de.codecentric</groupId>
  39. <artifactId>spring-boot-admin-starter-client</artifactId>
  40. <version>2.1.6</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>de.codecentric</groupId>
  44. <artifactId>spring-boot-admin-starter-server</artifactId>
  45. <version>2.1.6</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.ym</groupId>
  49. <artifactId>mec-common</artifactId>
  50. <version>1.0</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.ym</groupId>
  54. <artifactId>mec-auth-api</artifactId>
  55. <version>1.0</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.ym</groupId>
  59. <artifactId>mec-util</artifactId>
  60. <version>1.0</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>io.zipkin.java</groupId>
  64. <artifactId>zipkin-server</artifactId>
  65. <version>${zipkin.version}</version>
  66. <!--排除log4j2 避免和logback冲突警告 -->
  67. <exclusions>
  68. <exclusion>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-log4j2</artifactId>
  71. </exclusion>
  72. </exclusions>
  73. </dependency>
  74. <dependency>
  75. <groupId>io.zipkin.java</groupId>
  76. <artifactId>zipkin-autoconfigure-ui</artifactId>
  77. <version>${zipkin.version}</version>
  78. </dependency>
  79. <!-- 使用消息的方式收集数据(使用rabbitmq) -->
  80. <dependency>
  81. <groupId>io.zipkin.java</groupId>
  82. <artifactId>zipkin-autoconfigure-collector-rabbitmq</artifactId>
  83. <version>${zipkin.version}</version>
  84. </dependency>
  85. <!-- 采用 elasticsearch 存储数据 -->
  86. <dependency>
  87. <groupId>io.zipkin.java</groupId>
  88. <artifactId>zipkin-autoconfigure-storage-elasticsearch-http</artifactId>
  89. <version>2.8.4</version>
  90. </dependency>
  91. <!-- swagger-spring-boot -->
  92. <dependency>
  93. <groupId>com.spring4all</groupId>
  94. <artifactId>swagger-spring-boot-starter</artifactId>
  95. <version>1.9.0.RELEASE</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.alibaba</groupId>
  99. <artifactId>druid-spring-boot-starter</artifactId>
  100. <version>1.1.10</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.mybatis.spring.boot</groupId>
  104. <artifactId>mybatis-spring-boot-starter</artifactId>
  105. <version>1.3.2</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.springframework.social</groupId>
  109. <artifactId>spring-social-security</artifactId>
  110. <version>1.1.6.RELEASE</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>commons-beanutils</groupId>
  114. <artifactId>commons-beanutils</artifactId>
  115. <version>1.9.2</version>
  116. </dependency>
  117. </dependencies>
  118. </dependencyManagement>
  119. <repositories>
  120. <repository>
  121. <id>spring-milestones</id>
  122. <name>Spring Milestones</name>
  123. <url>https://repo.spring.io/libs-milestone</url>
  124. <snapshots>
  125. <enabled>false</enabled>
  126. </snapshots>
  127. </repository>
  128. <repository>
  129. <id>sonatype-nexus-snapshots</id>
  130. <name>Sonatype Nexus Snapshots</name>
  131. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  132. <snapshots>
  133. <enabled>true</enabled>
  134. </snapshots>
  135. <releases>
  136. <enabled>false</enabled>
  137. </releases>
  138. </repository>
  139. </repositories>
  140. <pluginRepositories>
  141. <pluginRepository>
  142. <id>repository.spring.release</id>
  143. <name>Spring GA Repository</name>
  144. <url>https://repo.spring.io/plugins-release/</url>
  145. </pluginRepository>
  146. <pluginRepository>
  147. <id>jcenter-snapshots</id>
  148. <name>jcenter</name>
  149. <url>http://oss.jfrog.org/artifactory/oss-snapshot-local/</url>
  150. </pluginRepository>
  151. <pluginRepository>
  152. <id>jcenter-releases</id>
  153. <name>jcenter</name>
  154. <url>http://jcenter.bintray.com</url>
  155. <snapshots>
  156. <enabled>false</enabled>
  157. </snapshots>
  158. </pluginRepository>
  159. </pluginRepositories>
  160. <dependencies>
  161. <!-- SpringBoot整合Web组件 -->
  162. <dependency>
  163. <groupId>org.springframework.boot</groupId>
  164. <artifactId>spring-boot-starter-web</artifactId>
  165. </dependency>
  166. <!--自省和监控的集成功能 -->
  167. <dependency>
  168. <groupId>org.springframework.boot</groupId>
  169. <artifactId>spring-boot-starter-actuator</artifactId>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-starter-test</artifactId>
  174. <scope>test</scope>
  175. </dependency>
  176. <!-- SpringBoot整合config组件 -->
  177. <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId>
  178. </dependency> -->
  179. <!--注册中心 -->
  180. <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  181. </dependency> -->
  182. <!--断路器 -->
  183. <dependency>
  184. <groupId>org.springframework.cloud</groupId>
  185. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-starter-security</artifactId>
  190. </dependency>
  191. <!--集群监控消息队列 -->
  192. <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix-hystrix-stream</artifactId>
  193. </dependency> -->
  194. <!--日志跟踪 -->
  195. <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-zipkin</artifactId>
  196. </dependency> -->
  197. <!--消息总线 -->
  198. <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  199. </dependency> -->
  200. <!--热加载 -->
  201. <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId>
  202. <scope>runtime</scope> <optional>true</optional> </dependency> -->
  203. <!--测试框架 -->
  204. <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId>
  205. <scope>test</scope> </dependency> -->
  206. <dependency>
  207. <groupId>org.springframework.cloud</groupId>
  208. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  209. <version>0.9.0.RELEASE</version>
  210. </dependency>
  211. </dependencies>
  212. <build>
  213. <finalName>${project.name}</finalName>
  214. <resources>
  215. <resource>
  216. <directory>src/main/resources</directory>
  217. <filtering>true</filtering>
  218. </resource>
  219. </resources>
  220. <pluginManagement>
  221. <plugins>
  222. <plugin>
  223. <groupId>org.springframework.boot</groupId>
  224. <artifactId>spring-boot-maven-plugin</artifactId>
  225. <version>${spring-boot.version}</version>
  226. <configuration>
  227. <finalName>${project.build.finalName}</finalName>
  228. </configuration>
  229. <executions>
  230. <execution>
  231. <goals>
  232. <goal>repackage</goal>
  233. </goals>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. </plugins>
  238. </pluginManagement>
  239. <plugins>
  240. <plugin>
  241. <artifactId>maven-compiler-plugin</artifactId>
  242. <version>3.8.0</version>
  243. <configuration>
  244. <target>${maven.compiler.target}</target>
  245. <source>${maven.compiler.source}</source>
  246. <encoding>${project.build.sourceEncoding}</encoding>
  247. </configuration>
  248. </plugin>
  249. <plugin>
  250. <groupId>pl.project13.maven</groupId>
  251. <artifactId>git-commit-id-plugin</artifactId>
  252. <version>2.2.5</version>
  253. </plugin>
  254. </plugins>
  255. </build>
  256. <modules>
  257. <module>mec-eureka</module>
  258. <module>mec-monitor</module>
  259. <module>mec-zipkin</module>
  260. <module>mec-gateway</module>
  261. <module>mec-auth</module>
  262. <module>mec-common</module>
  263. <module>mec-util</module>
  264. <module>mec-task</module>
  265. <module>codegen</module>
  266. </modules>
  267. </project>