This is an automated email from the ASF dual-hosted git repository.
zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new b9f8a310f72 Fix Proxy standalone mode startup failure (#25482)
b9f8a310f72 is described below
commit b9f8a310f72724828d198abc690ed706738ba11f
Author: jiangML <[email protected]>
AuthorDate: Sat May 6 12:02:26 2023 +0800
Fix Proxy standalone mode startup failure (#25482)
* add h2 for distribution/proxy/pom.xml, remove useless h2 from agent
* add h2 for metrics/core to test
* optimized format
---
agent/plugins/metrics/core/pom.xml | 12 ------------
agent/plugins/metrics/type/prometheus/pom.xml | 12 ------------
agent/plugins/tracing/core/pom.xml | 6 ------
agent/plugins/tracing/type/pom.xml | 6 ------
distribution/proxy/pom.xml | 5 +++++
5 files changed, 5 insertions(+), 36 deletions(-)
diff --git a/agent/plugins/metrics/core/pom.xml
b/agent/plugins/metrics/core/pom.xml
index 7862c40ba3c..707f457a6f7 100644
--- a/agent/plugins/metrics/core/pom.xml
+++ b/agent/plugins/metrics/core/pom.xml
@@ -37,12 +37,6 @@
<artifactId>shardingsphere-infra-context</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
@@ -79,12 +73,6 @@
<artifactId>shardingsphere-proxy-backend-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
diff --git a/agent/plugins/metrics/type/prometheus/pom.xml
b/agent/plugins/metrics/type/prometheus/pom.xml
index 1bef765d006..4bf7d56020c 100644
--- a/agent/plugins/metrics/type/prometheus/pom.xml
+++ b/agent/plugins/metrics/type/prometheus/pom.xml
@@ -62,24 +62,12 @@
<artifactId>shardingsphere-proxy-backend-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-infra-context</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
diff --git a/agent/plugins/tracing/core/pom.xml
b/agent/plugins/tracing/core/pom.xml
index d50990974f9..1df11b8e138 100644
--- a/agent/plugins/tracing/core/pom.xml
+++ b/agent/plugins/tracing/core/pom.xml
@@ -33,12 +33,6 @@
<artifactId>shardingsphere-proxy-frontend-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </exclusion>
- </exclusions>
</dependency>
</dependencies>
</project>
diff --git a/agent/plugins/tracing/type/pom.xml
b/agent/plugins/tracing/type/pom.xml
index 73b58fb6212..4577dee508f 100644
--- a/agent/plugins/tracing/type/pom.xml
+++ b/agent/plugins/tracing/type/pom.xml
@@ -48,12 +48,6 @@
<artifactId>shardingsphere-proxy-frontend-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
- <exclusions>
- <exclusion>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- </exclusion>
- </exclusions>
</dependency>
</dependencies>
</project>
diff --git a/distribution/proxy/pom.xml b/distribution/proxy/pom.xml
index 46f5c4986aa..e8d30709bad 100644
--- a/distribution/proxy/pom.xml
+++ b/distribution/proxy/pom.xml
@@ -58,6 +58,11 @@
<artifactId>logback-classic</artifactId>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
<profiles>