pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.ym</groupId>
  5. <artifactId>mec</artifactId>
  6. <version>1.0</version>
  7. <packaging>pom</packaging>
  8. <name>mec</name>
  9. <url>http://maven.apache.org</url>
  10. <dependencyManagement>
  11. <dependencies>
  12. <!--支持Spring Boot 2.1.X -->
  13. <dependency>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-dependencies</artifactId>
  16. <version>2.1.4.RELEASE</version>
  17. <type>pom</type>
  18. <scope>import</scope>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework.cloud</groupId>
  22. <artifactId>spring-cloud-dependencies</artifactId>
  23. <version>Greenwich.RELEASE</version>
  24. <type>pom</type>
  25. <scope>import</scope>
  26. </dependency>
  27. </dependencies>
  28. </dependencyManagement>
  29. <repositories>
  30. <repository>
  31. <id>spring-milestones</id>
  32. <name>Spring Milestones</name>
  33. <url>https://repo.spring.io/libs-milestone</url>
  34. <snapshots>
  35. <enabled>false</enabled>
  36. </snapshots>
  37. </repository>
  38. <repository>
  39. <id>sonatype-nexus-snapshots</id>
  40. <name>Sonatype Nexus Snapshots</name>
  41. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  42. <snapshots>
  43. <enabled>true</enabled>
  44. </snapshots>
  45. <releases>
  46. <enabled>false</enabled>
  47. </releases>
  48. </repository>
  49. </repositories>
  50. <pluginRepositories>
  51. <pluginRepository>
  52. <id>repository.spring.release</id>
  53. <name>Spring GA Repository</name>
  54. <url>https://repo.spring.io/plugins-release/</url>
  55. </pluginRepository>
  56. <pluginRepository>
  57. <id>jcenter-snapshots</id>
  58. <name>jcenter</name>
  59. <url>http://oss.jfrog.org/artifactory/oss-snapshot-local/</url>
  60. </pluginRepository>
  61. <pluginRepository>
  62. <id>jcenter-releases</id>
  63. <name>jcenter</name>
  64. <url>http://jcenter.bintray.com</url>
  65. <snapshots>
  66. <enabled>false</enabled>
  67. </snapshots>
  68. </pluginRepository>
  69. </pluginRepositories>
  70. <properties>
  71. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  72. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  73. <maven.compiler.source>1.8</maven.compiler.source>
  74. <maven.compiler.target>1.8</maven.compiler.target>
  75. </properties>
  76. <dependencies>
  77. <!-- SpringBoot整合Web组件 -->
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-web</artifactId>
  81. </dependency>
  82. <!--自省和监控的集成功能 -->
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-actuator</artifactId>
  86. </dependency>
  87. <!-- SpringBoot整合config组件 -->
  88. <!-- <dependency>
  89. <groupId>org.springframework.cloud</groupId>
  90. <artifactId>spring-cloud-starter-config</artifactId>
  91. </dependency> -->
  92. <!--注册中心 -->
  93. <!-- <dependency>
  94. <groupId>org.springframework.cloud</groupId>
  95. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  96. </dependency> -->
  97. <!--断路器 -->
  98. <dependency>
  99. <groupId>org.springframework.cloud</groupId>
  100. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-security</artifactId>
  105. </dependency>
  106. <!--集群监控消息队列 -->
  107. <!-- <dependency>
  108. <groupId>org.springframework.cloud</groupId>
  109. <artifactId>spring-cloud-netflix-hystrix-stream</artifactId>
  110. </dependency> -->
  111. <!--日志跟踪 -->
  112. <!-- <dependency>
  113. <groupId>org.springframework.cloud</groupId>
  114. <artifactId>spring-cloud-starter-zipkin</artifactId>
  115. </dependency> -->
  116. <!--消息总线 -->
  117. <!-- <dependency>
  118. <groupId>org.springframework.cloud</groupId>
  119. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  120. </dependency> -->
  121. <!--使用 lombok 简化 Java 代码 -->
  122. <dependency>
  123. <groupId>org.projectlombok</groupId>
  124. <artifactId>lombok</artifactId>
  125. <scope>compile</scope>
  126. </dependency>
  127. <!--热加载 -->
  128. <!-- <dependency>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-devtools</artifactId>
  131. <scope>runtime</scope>
  132. <optional>true</optional>
  133. </dependency> -->
  134. <!--测试框架 -->
  135. <!-- <dependency>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-starter-test</artifactId>
  138. <scope>test</scope>
  139. </dependency> -->
  140. <dependency>
  141. <groupId>org.springframework.cloud</groupId>
  142. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  143. <version>0.9.0.RELEASE</version>
  144. </dependency>
  145. </dependencies>
  146. <build>
  147. <plugins>
  148. <plugin>
  149. <groupId>org.springframework.boot</groupId>
  150. <artifactId>spring-boot-maven-plugin</artifactId>
  151. <version>2.1.4.RELEASE</version>
  152. <executions>
  153. <execution>
  154. <goals>
  155. <goal>build-info</goal>
  156. <goal>repackage</goal>
  157. </goals>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. <modules>
  164. <module>mec-eureka</module>
  165. <module>mec-monitor</module>
  166. <module>mec-zipkin</module>
  167. <module>mec-gateway</module>
  168. <module>mec-auth</module>
  169. <module>mec-common</module>
  170. <module>mec-util</module>
  171. <module>mec-task</module>
  172. <module>codegen</module>
  173. </modules>
  174. </project>