|
|
|
@ -96,87 +96,57 @@
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
<!-- Spring Cloud Nacos Service Discovery -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- Spring Cloud Eureka Service Discovery -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
|
|
|
|
|
|
<!-- Nacos -->
|
|
|
|
|
<profile>
|
|
|
|
|
<id>nacos</id>
|
|
|
|
|
<activation>
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
</activation>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<!-- Nacos Service Discovery -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
|
<id>eureka</id>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<!-- Eureka Service Discovery -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
<!-- Zookeeper -->
|
|
|
|
|
<profile>
|
|
|
|
|
<id>zookeeper</id>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<!-- Zookeeper Service Discovery -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-zookeeper-discovery</artifactId>
|
|
|
|
|
<version>${spring-cloud-zookeeper.version}</version>
|
|
|
|
|
<exclusions>
|
|
|
|
|
<exclusion>
|
|
|
|
|
<groupId>org.apache.zookeeper</groupId>
|
|
|
|
|
<artifactId>zookeeper</artifactId>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<!-- Spring Cloud Zookeeper Service Discovery -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-zookeeper-discovery</artifactId>
|
|
|
|
|
<version>${spring-cloud-zookeeper.version}</version>
|
|
|
|
|
<exclusions>
|
|
|
|
|
<exclusion>
|
|
|
|
|
<groupId>org.apache.zookeeper</groupId>
|
|
|
|
|
<artifactId>zookeeper</artifactId>
|
|
|
|
|
<version>3.4.12</version>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
<exclusions>
|
|
|
|
|
<exclusion>
|
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.curator</groupId>
|
|
|
|
|
<artifactId>curator-framework</artifactId>
|
|
|
|
|
<version>${curator.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
|
<id>consul</id>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<!-- Spring Cloud Consul -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-consul-discovery</artifactId>
|
|
|
|
|
<version>${spring-cloud-consul.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
</profiles>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.zookeeper</groupId>
|
|
|
|
|
<artifactId>zookeeper</artifactId>
|
|
|
|
|
<version>3.4.12</version>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
<exclusions>
|
|
|
|
|
<exclusion>
|
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.curator</groupId>
|
|
|
|
|
<artifactId>curator-framework</artifactId>
|
|
|
|
|
<version>${curator.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- Spring Cloud Consul Service Discovery -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-consul-discovery</artifactId>
|
|
|
|
|
<version>${spring-cloud-consul.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<plugins>
|
|
|
|
|