nacos/client/pom.xml

461 lines
24 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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"
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>
<version>${revision}</version>
2018-10-01 10:58:27 +08:00
<relativePath>../pom.xml</relativePath>
</parent>
2018-10-01 10:58:27 +08:00
<modelVersion>4.0.0</modelVersion>
2018-10-01 10:58:27 +08:00
<artifactId>nacos-client</artifactId>
<packaging>jar</packaging>
2018-10-01 10:58:27 +08:00
<name>nacos-client ${project.version}</name>
<url>http://nacos.io</url>
2018-10-01 10:58:27 +08:00
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
2018-10-01 10:58:27 +08:00
<dependencies>
2018-10-01 10:58:27 +08:00
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<optional>true</optional>
</dependency>
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 09:22:44 +08:00
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<optional>true</optional>
</dependency>
2018-10-01 10:58:27 +08:00
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<optional>true</optional>
</dependency>
2018-10-01 10:58:27 +08:00
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>nacos-common</artifactId>
<optional>true</optional>
2018-10-01 10:58:27 +08:00
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>nacos-auth-plugin</artifactId>
</dependency>
[ISSUE #5695] Add config encrypt spi for nacos server. (#7934) * [ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0 (#6655) * Defines the interface * 增加aes实现 * 客户端、服务端加解密实现 * 客户端、服务端加解密实现 * fix code quality (#6727) * [ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0, EncryptedDataKey is persisted (#6740) * Defines the interface * 增加aes实现 * 客户端、服务端加解密实现 * 客户端、服务端加解密实现 * 秘钥持久化 * 秘钥持久化 * [ISSUE#5695] Summer2021 Cache encryptedDataKey (#6878) * Defines the interface * 增加aes实现 * 客户端、服务端加解密实现 * 客户端、服务端加解密实现 * 秘钥持久化 * 秘钥持久化 * 秘钥缓存到内存中 * 解决冲突 * 修改filter继承AbstractConfigFilter (#6879) * [ISSUE#5695] Summer2021 EncryptedDataKey is persisted to Derby (#6882) * [ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0 (#6655) * Defines the interface * 增加aes实现 * 客户端、服务端加解密实现 * 客户端、服务端加解密实现 * fix code quality (#6727) * # This is a combination of 6 commits.tree cf7a399f99c4d81b8667c8de06f5ceb8c79fb6f0 parent 8024ecf31bf23a9edab416be8a3bfd1c0e48ce5e author 李晓双 Li Xiao Shuang <644968328@qq.com> 1630028256 +0800 committer lixiaoshuang <644968328@qq.com> 1631804378 +0800 # This is a combination of 3 commits. # This is the 1st commit message: [ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0, EncryptedDataKey is persisted (#6740) * Defines the interface * 增加aes实现 * 客户端、服务端加解密实现 * 客户端、服务端加解密实现 * 秘钥持久化 * 秘钥持久化 # This is the commit message #2: [ISSUE#5695] Summer2021 Cache encryptedDataKey (#6878) * Defines the interface * 增加aes实现 * 客户端、服务端加解密实现 * 客户端、服务端加解密实现 * 秘钥持久化 * 秘钥持久化 * 秘钥缓存到内存中 * 解决冲突 # This is the commit message #3: 修改filter继承AbstractConfigFilter (#6879) # This is the commit message #6: 客户端、服务端加解密实现 * parent 8024ecf31bf23a9edab416be8a3bfd1c0e48ce5e author 李晓双 Li Xiao Shuang <644968328@qq.com> 1630028256 +0800 committer lixiaoshuang <644968328@qq.com> 1631805204 +0800 parent 8024ecf31bf23a9edab416be8a3bfd1c0e48ce5e author 李晓双 Li Xiao Shuang <644968328@qq.com> 1630028256 +0800 committer lixiaoshuang <644968328@qq.com> 1631804378 +0800 [ISSUE#5695] Add a plugin SPI for configuration encryption and decryption for Nacos 2.0, EncryptedDataKey is persisted (#6740) * 配置加解密插件 * derby支持秘钥存储 * 克隆功能兼容配置加解密 (#6913) * [ISSUE#5695] Summer2021 Import/export compatible with configuration encryption and decryption (#6956) * 克隆功能兼容配置加解密 * 导入导出兼容配置加解密 * 秘钥base64编码、更换AES加密模式 (#6974) * [ISSUE#5695] Summer2021 add unit test for ConfigCryptoFilter (#6991) * add unit test for ConfigCryptoFilter * add unit test for ConfigCryptoFilter * [ISSUE#5695] Summer2021 add unit test for CryptoExecutor (#6990) * add unit test for CryptoExecutor * add Copyright * [ISSUE#5695] Summer2021 add unit test for CryptoManager (#6989) * add unit test for CryptoManager * add unit test for CryptoManager * [ISSUE#5695] Summer2021 add unit test for AesCrypto (#6988) * add unit test for AesCrypto * update AesCryptoTest * Increased iv randomness * add default Iv * fix javadoc * fix unit test * defining plugin intergace * Replace the client encryption and decryption actuator * Replace the server encryption and decryption actuator * add unit test * add unit test * remove old code * fix NacosConfigServiceTest * Encryption and decryption to achieve migration Co-authored-by: 杨翊 SionYang <263976490@qq.com>
2022-03-16 10:54:11 +08:00
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-encryption-plugin</artifactId>
</dependency>
2018-10-01 10:58:27 +08:00
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>nacos-api</artifactId>
<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>
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>
2018-10-01 10:58:27 +08:00
<dependency>
<artifactId>commons-codec</artifactId>
<groupId>commons-codec</groupId>
</dependency>
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>
2019-04-01 21:16:44 +08:00
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
</dependency>
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-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>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</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.4</version>
2021-04-23 18:36:02 +08:00
<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>true</minimizeJar>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>io.grpc:grpc-netty-shaded</artifact>
<excludes>
<exclude>
META-INF/native/*.*
</exclude>
</excludes>
</filter>
<filter>
<artifact>com.alibaba.nacos:nacos-api</artifact>
<includes>
<include>
com/alibaba/nacos/api/**/**
</include>
<include>
META-INF/**/*.*
</include>
</includes>
</filter>
</filters>
2021-04-23 18:36:02 +08:00
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<artifactSet>
<includes>
<include>com.alibaba.nacos:nacos-api</include>
<include>com.alibaba.nacos:nacos-common</include>
<include>org.conscrypt:conscrypt-openjdk</include>
<include>org.mortbay.jetty.alpn:alpn-boot</include>
<include>org.eclipse.jetty.npn:npn-api</include>
<include>org.reflections:reflections</include>
<include>com.google.guava:guava</include>
<include>io.grpc:*</include>
<include>io.opencensus:*</include>
<include>org.javassist:*</include>
<include>io.perfmark:perfmark-api</include>
<include>com.google.*:*</include>
<include>javax.annotation:javax.annotation-api</include>
<include>org.checkerframework:*</include>
<include>org.codehaus.mojo:*</include>
2021-04-23 18:36:02 +08:00
</includes>
2021-04-23 18:36:02 +08:00
</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>javax.annotation</pattern>
<shadedPattern>com.alibaba.nacos.shaded.javax.annotation</shadedPattern>
</relocation>
2021-04-23 18:36:02 +08:00
<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>
2022-10-10 15:36:49 +08:00
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>pure-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>pure</classifier>
</configuration>
</execution>
</executions>
</plugin>
2021-04-23 18:36:02 +08:00
</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.4</version>
<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>true</minimizeJar>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>io.grpc:grpc-netty-shaded</artifact>
<excludes>
<exclude>
META-INF/native/*.*
</exclude>
</excludes>
</filter>
<filter>
<artifact>com.alibaba.nacos:nacos-api</artifact>
<includes>
<include>
com/alibaba/nacos/api/**/**
</include>
<include>
META-INF/**/*.*
</include>
</includes>
</filter>
</filters>
2021-04-23 18:36:02 +08:00
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
2021-04-23 18:36:02 +08:00
<artifactSet>
<includes>
<include>com.alibaba.nacos:nacos-api</include>
<include>com.alibaba.nacos:nacos-common</include>
<include>org.conscrypt:conscrypt-openjdk</include>
<include>org.mortbay.jetty.alpn:alpn-boot</include>
<include>org.eclipse.jetty.npn:npn-api</include>
<include>org.reflections:reflections</include>
<include>com.google.guava:guava</include>
<include>io.grpc:*</include>
<include>io.opencensus:*</include>
<include>org.javassist:*</include>
<include>io.perfmark:perfmark-api</include>
<include>com.google.*:*</include>
<include>javax.annotation:javax.annotation-api</include>
<include>org.checkerframework:*</include>
<include>org.codehaus.mojo:*</include>
2021-04-23 18:36:02 +08:00
</includes>
2021-04-23 18:36:02 +08:00
</artifactSet>
2021-04-23 18:36:02 +08:00
<relocations>
2021-04-23 18:36:02 +08:00
<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>
2021-04-23 18:36:02 +08:00
<relocation>
<pattern>com.google</pattern>
<shadedPattern>com.alibaba.nacos.shaded.com.google</shadedPattern>
</relocation>
<relocation>
<pattern>javax.annotation</pattern>
<shadedPattern>com.alibaba.nacos.shaded.javax.annotation</shadedPattern>
</relocation>
2021-04-23 18:36:02 +08:00
<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>
2021-04-23 18:36:02 +08:00
</relocations>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
2021-04-23 18:36:02 +08:00
</transformers>
</configuration>
</execution>
</executions>
</plugin>
2022-10-10 15:36:49 +08:00
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>pure-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>pure</classifier>
</configuration>
</execution>
</executions>
</plugin>
2021-04-23 18:36:02 +08:00
</plugins>
</build>
</profile>
</profiles>
2018-07-21 00:27:23 +08:00
</project>