Skip to content

Commit 667f227

Browse files
ujjboylovepoem
authored andcommitted
[Dubbo-3886] Integrate with SOFARegistry. (apache#3886)
* Integrate with SOFARegistry.
1 parent 78c7509 commit 667f227

File tree

15 files changed

+775
-3
lines changed

15 files changed

+775
-3
lines changed

dubbo-all/pom.xml

+8
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,13 @@
254254
<scope>compile</scope>
255255
<optional>true</optional>
256256
</dependency>
257+
<dependency>
258+
<groupId>org.apache.dubbo</groupId>
259+
<artifactId>dubbo-registry-sofa</artifactId>
260+
<version>${project.version}</version>
261+
<scope>compile</scope>
262+
<optional>true</optional>
263+
</dependency>
257264
<dependency>
258265
<groupId>org.apache.dubbo</groupId>
259266
<artifactId>dubbo-monitor-api</artifactId>
@@ -530,6 +537,7 @@
530537
<include>org.apache.dubbo:dubbo-registry-redis</include>
531538
<include>org.apache.dubbo:dubbo-registry-consul</include>
532539
<include>org.apache.dubbo:dubbo-registry-etcd3</include>
540+
<include>org.apache.dubbo:dubbo-registry-sofa</include>
533541
<include>org.apache.dubbo:dubbo-monitor-api</include>
534542
<include>org.apache.dubbo:dubbo-monitor-default</include>
535543
<include>org.apache.dubbo:dubbo-config-api</include>

dubbo-bom/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@
252252
<artifactId>dubbo-registry-consul</artifactId>
253253
<version>${project.version}</version>
254254
</dependency>
255+
<dependency>
256+
<groupId>org.apache.dubbo</groupId>
257+
<artifactId>dubbo-registry-sofa</artifactId>
258+
<version>${project.version}</version>
259+
</dependency>
255260
<dependency>
256261
<groupId>org.apache.dubbo</groupId>
257262
<artifactId>dubbo-monitor-api</artifactId>

dubbo-dependencies-bom/pom.xml

+14-1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
<spring_test_version>4.3.16.RELEASE</spring_test_version>
146146

147147
<metrics_version>2.0.1</metrics_version>
148+
<sofa_registry_version>5.2.0</sofa_registry_version>
148149
<gson_version>2.8.5</gson_version>
149150
<jsonrpc_version>1.2.0</jsonrpc_version>
150151
<portlet_version>2.0</portlet_version>
@@ -458,7 +459,6 @@
458459
<version>${commons_lang3_version}</version>
459460
</dependency>
460461

461-
462462
<!-- for dubbo-rpc-webservice -->
463463
<dependency>
464464
<groupId>javax.xml.bind</groupId>
@@ -519,6 +519,19 @@
519519
<artifactId>metrics-rest</artifactId>
520520
<version>${metrics_version}</version>
521521
</dependency>
522+
523+
<!-- for dubbo-registry-sofa -->
524+
<dependency>
525+
<groupId>com.alipay.sofa</groupId>
526+
<artifactId>registry-client-all</artifactId>
527+
<version>${sofa_registry_version}</version>
528+
</dependency>
529+
<dependency>
530+
<groupId>com.alipay.sofa</groupId>
531+
<artifactId>registry-test</artifactId>
532+
<version>${sofa_registry_version}</version>
533+
<scope>test</scope>
534+
</dependency>
522535

523536
<!-- Test lib -->
524537
<dependency>

dubbo-distribution/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@
180180
<artifactId>dubbo-registry-redis</artifactId>
181181
<version>${project.version}</version>
182182
</dependency>
183+
<dependency>
184+
<groupId>org.apache.dubbo</groupId>
185+
<artifactId>dubbo-registry-sofa</artifactId>
186+
<version>${project.version}</version>
187+
</dependency>
183188
<dependency>
184189
<groupId>org.apache.dubbo</groupId>
185190
<artifactId>dubbo-monitor-api</artifactId>
+141
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one or more
3+
contributor license agreements. See the NOTICE file distributed with
4+
this work for additional information regarding copyright ownership.
5+
The ASF licenses this file to You under the Apache License, Version 2.0
6+
(the "License"); you may not use this file except in compliance with
7+
the License. You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19+
<parent>
20+
<groupId>org.apache.dubbo</groupId>
21+
<artifactId>dubbo-registry</artifactId>
22+
<version>${revision}</version>
23+
<relativePath>../pom.xml</relativePath>
24+
</parent>
25+
<modelVersion>4.0.0</modelVersion>
26+
27+
<artifactId>dubbo-registry-sofa</artifactId>
28+
<name>${project.artifactId}</name>
29+
<description>The SOFARegistry module of Dubbo project</description>
30+
31+
<properties>
32+
<javax.ws.rs.version>2.1</javax.ws.rs.version>
33+
<argline>-Dnetwork_interface_denylist=docker0</argline>
34+
</properties>
35+
36+
<dependencies>
37+
<dependency>
38+
<groupId>org.apache.dubbo</groupId>
39+
<artifactId>dubbo-registry-api</artifactId>
40+
<version>${project.version}</version>
41+
<optional>true</optional>
42+
</dependency>
43+
44+
<dependency>
45+
<groupId>org.apache.dubbo</groupId>
46+
<artifactId>dubbo-common</artifactId>
47+
<version>${project.version}</version>
48+
<optional>true</optional>
49+
</dependency>
50+
51+
<dependency>
52+
<groupId>com.alipay.sofa</groupId>
53+
<artifactId>registry-client-all</artifactId>
54+
<exclusions>
55+
<exclusion>
56+
<groupId>com.alipay.sofa</groupId>
57+
<artifactId>sofa-common-tools</artifactId>
58+
</exclusion>
59+
</exclusions>
60+
</dependency>
61+
62+
<!-- Test Libraries -->
63+
<dependency>
64+
<groupId>org.apache.dubbo</groupId>
65+
<artifactId>dubbo-config-api</artifactId>
66+
<version>${project.version}</version>
67+
<scope>test</scope>
68+
</dependency>
69+
<dependency>
70+
<groupId>org.apache.dubbo</groupId>
71+
<artifactId>dubbo-rpc-dubbo</artifactId>
72+
<version>${project.version}</version>
73+
<scope>test</scope>
74+
</dependency>
75+
<dependency>
76+
<groupId>org.apache.dubbo</groupId>
77+
<artifactId>dubbo-remoting-netty4</artifactId>
78+
<version>${project.version}</version>
79+
<scope>test</scope>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.apache.dubbo</groupId>
83+
<artifactId>dubbo-serialization-hessian2</artifactId>
84+
<version>${project.version}</version>
85+
<scope>test</scope>
86+
</dependency>
87+
<dependency>
88+
<groupId>ch.qos.logback</groupId>
89+
<artifactId>logback-classic</artifactId>
90+
<scope>test</scope>
91+
</dependency>
92+
93+
<!-- test modules -->
94+
<dependency>
95+
<groupId>com.alipay.sofa</groupId>
96+
<artifactId>registry-test</artifactId>
97+
<scope>test</scope>
98+
<exclusions>
99+
<exclusion>
100+
<artifactId>log4j-over-slf4j</artifactId>
101+
<groupId>org.slf4j</groupId>
102+
</exclusion>
103+
<exclusion>
104+
<artifactId>log4j-jcl</artifactId>
105+
<groupId>org.apache.logging.log4j</groupId>
106+
</exclusion>
107+
<exclusion>
108+
<artifactId>log4j-core</artifactId>
109+
<groupId>org.apache.logging.log4j</groupId>
110+
</exclusion>
111+
<exclusion>
112+
<artifactId>log4j-api</artifactId>
113+
<groupId>org.apache.logging.log4j</groupId>
114+
</exclusion>
115+
</exclusions>
116+
</dependency>
117+
118+
<dependency>
119+
<groupId>org.jboss.resteasy</groupId>
120+
<artifactId>resteasy-jaxrs</artifactId>
121+
<scope>test</scope>
122+
</dependency>
123+
<dependency>
124+
<groupId>org.jboss.resteasy</groupId>
125+
<artifactId>resteasy-netty4</artifactId>
126+
<scope>test</scope>
127+
</dependency>
128+
<dependency>
129+
<groupId>javax.ws.rs</groupId>
130+
<artifactId>javax.ws.rs-api</artifactId>
131+
<version>${javax.ws.rs.version}</version>
132+
<scope>test</scope>
133+
</dependency>
134+
<dependency>
135+
<groupId>javax.xml.bind</groupId>
136+
<artifactId>jaxb-api</artifactId>
137+
<scope>test</scope>
138+
</dependency>
139+
140+
</dependencies>
141+
</project>

0 commit comments

Comments
 (0)