Skip to content

Commit b97b8f6

Browse files
authored
[ISSUE apache#9127] remove dependency io.github.aliyunmq:rocketmq-grpc-netty-codec-haproxy
1 parent ff94b99 commit b97b8f6

File tree

3 files changed

+116
-5
lines changed

3 files changed

+116
-5
lines changed
+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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+
18+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20+
<modelVersion>4.0.0</modelVersion>
21+
<parent>
22+
<groupId>org.apache.rocketmq</groupId>
23+
<artifactId>rocketmq-all</artifactId>
24+
<version>5.2.0</version>
25+
</parent>
26+
27+
<artifactId>grpc-netty-codec-haproxy-shaded</artifactId>
28+
<packaging>jar</packaging>
29+
30+
<name>grpc-netty-codec-haproxy-shaded</name>
31+
32+
<properties>
33+
<maven.compiler.source>8</maven.compiler.source>
34+
<maven.compiler.target>8</maven.compiler.target>
35+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36+
<grpc-netty-shaded.version>4.1.79.Final</grpc-netty-shaded.version>
37+
</properties>
38+
39+
<dependencies>
40+
<dependency>
41+
<groupId>io.netty</groupId>
42+
<artifactId>netty-codec-haproxy</artifactId>
43+
<version>${grpc-netty-shaded.version}</version>
44+
</dependency>
45+
</dependencies>
46+
47+
<build>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-shade-plugin</artifactId>
52+
<version>${maven-shade-plugin.version}</version>
53+
<configuration>
54+
<minimizeJar>false</minimizeJar>
55+
<createSourcesJar>true</createSourcesJar>
56+
<shadeSourcesContent>true</shadeSourcesContent>
57+
<createDependencyReducedPom>false</createDependencyReducedPom>
58+
<artifactSet>
59+
<includes>
60+
<include>io.netty:netty-codec-haproxy</include>
61+
</includes>
62+
</artifactSet>
63+
<transformers>
64+
<transformer
65+
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
66+
<transformer
67+
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
68+
<manifestEntries>
69+
<Implementation-Title>rocketmq-grpc-netty</Implementation-Title>
70+
<Implementation-Version>${grpc-netty-shaded.version}-rocketmq</Implementation-Version>
71+
</manifestEntries>
72+
</transformer>
73+
</transformers>
74+
<relocations>
75+
<relocation>
76+
<pattern>io.netty</pattern>
77+
<shadedPattern>io.grpc.netty.shaded.io.netty</shadedPattern>
78+
</relocation>
79+
</relocations>
80+
</configuration>
81+
<executions>
82+
<execution>
83+
<phase>package</phase>
84+
<goals>
85+
<goal>shade</goal>
86+
</goals>
87+
</execution>
88+
</executions>
89+
</plugin>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-compiler-plugin</artifactId>
93+
</plugin>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-jar-plugin</artifactId>
97+
</plugin>
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-javadoc-plugin</artifactId>
101+
</plugin>
102+
</plugins>
103+
</build>
104+
</project>

pom.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
<module>controller</module>
201201
<module>proxy</module>
202202
<module>tieredstore</module>
203+
<module>grpc-netty-codec-haproxy-shaded</module>
203204
</modules>
204205

205206
<build>
@@ -928,9 +929,9 @@
928929
</exclusions>
929930
</dependency>
930931
<dependency>
931-
<groupId>io.github.aliyunmq</groupId>
932-
<artifactId>rocketmq-grpc-netty-codec-haproxy</artifactId>
933-
<version>1.0.0</version>
932+
<groupId>org.apache.rocketmq</groupId>
933+
<artifactId>grpc-netty-codec-haproxy-shaded</artifactId>
934+
<version>${project.version}</version>
934935
</dependency>
935936
<dependency>
936937
<groupId>com.conversantmedia</groupId>

proxy/pom.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,14 @@
8080
<artifactId>protobuf-java-util</artifactId>
8181
</dependency>
8282
<dependency>
83-
<groupId>io.github.aliyunmq</groupId>
84-
<artifactId>rocketmq-grpc-netty-codec-haproxy</artifactId>
83+
<groupId>org.apache.rocketmq</groupId>
84+
<artifactId>grpc-netty-codec-haproxy-shaded</artifactId>
85+
<exclusions>
86+
<exclusion>
87+
<groupId>io.netty</groupId>
88+
<artifactId>netty-codec-haproxy</artifactId>
89+
</exclusion>
90+
</exclusions>
8591
</dependency>
8692
<dependency>
8793
<groupId>org.apache.commons</groupId>

0 commit comments

Comments
 (0)