2018-09-26 20:05:17 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
2020-06-12 15:33:41 +08:00
|
|
|
~ Copyright 1999-2018 Alibaba Group Holding Ltd.
|
|
|
|
~
|
|
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
~ you may not use this file except in compliance with the License.
|
|
|
|
~ You may obtain a copy of the License at
|
|
|
|
~
|
|
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
~
|
|
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
~ See the License for the specific language governing permissions and
|
|
|
|
~ limitations under the License.
|
|
|
|
-->
|
2018-07-21 00:27:23 +08:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2020-07-03 17:30:05 +08:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2018-10-01 10:58:27 +08:00
|
|
|
<parent>
|
|
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
|
|
<artifactId>nacos-all</artifactId>
|
2021-01-15 14:37:47 +08:00
|
|
|
<version>${revision}</version>
|
2018-10-01 10:58:27 +08:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<artifactId>nacos-client</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<name>nacos-client ${project.version}</name>
|
2020-06-01 18:35:20 +08:00
|
|
|
<url>http://nacos.io</url>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
</properties>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependencies>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-core</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2020-07-03 09:22:44 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-api</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2021-03-10 11:18:37 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>${project.groupId}</groupId>
|
|
|
|
<artifactId>nacos-common</artifactId>
|
2021-03-10 11:18:37 +08:00
|
|
|
<optional>true</optional>
|
2018-10-01 10:58:27 +08:00
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>${project.groupId}</groupId>
|
|
|
|
<artifactId>nacos-api</artifactId>
|
2021-03-10 11:18:37 +08:00
|
|
|
<optional>true</optional>
|
2018-10-01 10:58:27 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
<artifactId>logback-classic</artifactId>
|
2018-10-01 11:19:53 +08:00
|
|
|
<optional>true</optional>
|
2018-10-01 10:58:27 +08:00
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
<artifactId>logback-core</artifactId>
|
2018-10-01 11:19:53 +08:00
|
|
|
<optional>true</optional>
|
2018-10-01 10:58:27 +08:00
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
|
<groupId>commons-codec</groupId>
|
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
2019-04-01 21:16:44 +08:00
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-core</artifactId>
|
2018-10-01 10:58:27 +08:00
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2019-04-01 21:16:44 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2021-03-10 11:18:37 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpasyncclient</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.reflections</groupId>
|
|
|
|
<artifactId>reflections</artifactId>
|
|
|
|
</dependency>
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.jcip</groupId>
|
|
|
|
<artifactId>jcip-annotations</artifactId>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2018-10-01 10:58:27 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2019-01-07 20:31:45 +08:00
|
|
|
<dependency>
|
2019-02-13 15:31:17 +08:00
|
|
|
<groupId>io.prometheus</groupId>
|
|
|
|
<artifactId>simpleclient</artifactId>
|
2019-01-07 20:31:45 +08:00
|
|
|
</dependency>
|
2019-06-20 19:53:17 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2019-08-15 17:37:03 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.yaml</groupId>
|
|
|
|
<artifactId>snakeyaml</artifactId>
|
|
|
|
</dependency>
|
2018-10-01 10:58:27 +08:00
|
|
|
</dependencies>
|
2020-07-03 17:30:05 +08:00
|
|
|
|
2019-02-28 17:52:06 +08:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
2020-12-02 10:49:07 +08:00
|
|
|
<source>8</source>
|
|
|
|
<target>8</target>
|
2019-02-28 17:52:06 +08:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2021-04-23 18:36:02 +08:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>release-sign-artifacts</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<version>3.2.1</version>
|
|
|
|
<configuration>
|
|
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
|
|
|
|
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
|
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
|
|
<minimizeJar>false</minimizeJar>
|
|
|
|
<createSourcesJar>true</createSourcesJar>
|
|
|
|
<shadeSourcesContent>true</shadeSourcesContent>
|
|
|
|
|
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>io.grpc:*</include>
|
|
|
|
<include>io.opencensus:*</include>
|
|
|
|
<include>io.perfmark:*</include>
|
|
|
|
<include>com.google.guava:guava</include>
|
2021-04-27 20:52:45 +08:00
|
|
|
<include>com.google.guava:failureaccess</include>
|
|
|
|
<include>com.google.errorprone:error_prone_annotations</include>
|
|
|
|
<include>com.google.j2objc:j2objc-annotations</include>
|
2021-04-23 18:36:02 +08:00
|
|
|
<include>com.google.code.gson:gson</include>
|
|
|
|
<include>com.google.protobuf:protobuf-java</include>
|
|
|
|
<include>com.alibaba.nacos:nacos-api</include>
|
|
|
|
<include>com.alibaba.nacos:nacos-common</include>
|
2021-04-27 20:52:45 +08:00
|
|
|
<include>org.checkerframework:checker-qual</include>
|
2021-04-23 18:36:02 +08:00
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
|
|
|
|
|
|
|
<relocations>
|
|
|
|
|
|
|
|
<relocation>
|
|
|
|
<pattern>io.grpc</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.io.grpc</shadedPattern>
|
|
|
|
<excludes>
|
|
|
|
<exclude>io.grpc.netty.shaded.io.grpc.netty.*</exclude>
|
|
|
|
</excludes>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>io.grpc.netty.shaded.io.grpc.netty</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty
|
|
|
|
</shadedPattern>
|
|
|
|
<includes>
|
|
|
|
<include>io.grpc.netty.shaded.io.grpc.netty.*</include>
|
|
|
|
</includes>
|
|
|
|
</relocation>
|
|
|
|
|
|
|
|
<relocation>
|
|
|
|
<pattern>com.google</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.com.google</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>io.perfmark</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.io.perfmark</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>io.opencensus</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.io.opencensus</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.codehaus</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.org.codehaus</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.checkerframework</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.org.checkerframework</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>android.annotation</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.android.annotation</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.example</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.org.example</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
|
|
|
|
|
|
|
|
</relocations>
|
|
|
|
<transformers>
|
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>
|
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
|
|
|
|
|
|
</transformers>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>release-nacos</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<version>3.2.1</version>
|
2021-03-10 11:18:37 +08:00
|
|
|
<configuration>
|
|
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
2021-04-23 18:36:02 +08:00
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
|
|
|
|
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
|
|
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
|
|
<minimizeJar>false</minimizeJar>
|
|
|
|
<createSourcesJar>true</createSourcesJar>
|
|
|
|
<shadeSourcesContent>true</shadeSourcesContent>
|
2021-03-10 11:18:37 +08:00
|
|
|
|
2021-04-23 18:36:02 +08:00
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>io.grpc:*</include>
|
|
|
|
<include>io.opencensus:*</include>
|
|
|
|
<include>io.perfmark:*</include>
|
|
|
|
<include>com.google.guava:guava</include>
|
2021-04-27 20:52:45 +08:00
|
|
|
<include>com.google.guava:failureaccess</include>
|
|
|
|
<include>com.google.errorprone:error_prone_annotations</include>
|
|
|
|
<include>com.google.j2objc:j2objc-annotations</include>
|
2021-04-23 18:36:02 +08:00
|
|
|
<include>com.google.code.gson:gson</include>
|
|
|
|
<include>com.google.protobuf:protobuf-java</include>
|
|
|
|
<include>com.alibaba.nacos:nacos-api</include>
|
|
|
|
<include>com.alibaba.nacos:nacos-common</include>
|
2021-04-27 20:52:45 +08:00
|
|
|
<include>org.checkerframework:checker-qual</include>
|
2021-04-23 18:36:02 +08:00
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
2021-03-10 11:18:37 +08:00
|
|
|
|
2021-04-23 18:36:02 +08:00
|
|
|
<relocations>
|
|
|
|
|
|
|
|
<relocation>
|
|
|
|
<pattern>io.grpc</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.io.grpc</shadedPattern>
|
|
|
|
<excludes>
|
|
|
|
<exclude>io.grpc.netty.shaded.io.grpc.netty.*</exclude>
|
|
|
|
</excludes>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>io.grpc.netty.shaded.io.grpc.netty</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.grpc.netty
|
|
|
|
</shadedPattern>
|
|
|
|
<includes>
|
|
|
|
<include>io.grpc.netty.shaded.io.grpc.netty.*</include>
|
|
|
|
</includes>
|
|
|
|
</relocation>
|
|
|
|
|
|
|
|
<relocation>
|
|
|
|
<pattern>com.google</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.com.google</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>io.perfmark</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.io.perfmark</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>io.opencensus</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.io.opencensus</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.codehaus</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.org.codehaus</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.checkerframework</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.org.checkerframework</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>android.annotation</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.android.annotation</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.example</pattern>
|
|
|
|
<shadedPattern>com.alibaba.nacos.shaded.org.example</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
|
|
|
|
|
|
|
|
</relocations>
|
|
|
|
<transformers>
|
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>
|
|
|
|
<transformer
|
|
|
|
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
|
|
|
|
|
|
</transformers>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2018-07-21 00:27:23 +08:00
|
|
|
</project>
|