HBASE-26470 Use openlabtesting protoc on linux arm64 in HBASE 2.x (#3860)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
markjens 2021-11-22 17:13:27 +02:00 committed by Duo Zhang
parent 9b627905c7
commit 113800bb06
1 changed files with 16 additions and 1 deletions

17
pom.xml
View File

@ -786,7 +786,7 @@
<artifactId>protobuf-maven-plugin</artifactId> <artifactId>protobuf-maven-plugin</artifactId>
<version>${protobuf.plugin.version}</version> <version>${protobuf.plugin.version}</version>
<configuration> <configuration>
<protocArtifact>com.google.protobuf:protoc:${external.protobuf.version}:exe:${os.detected.classifier}</protocArtifact> <protocArtifact>${external.protobuf.groupid}:protoc:${external.protoc.version}:exe:${os.detected.classifier}</protocArtifact>
<protoSourceRoot>${basedir}/src/main/protobuf/</protoSourceRoot> <protoSourceRoot>${basedir}/src/main/protobuf/</protoSourceRoot>
<clearOutputDirectory>false</clearOutputDirectory> <clearOutputDirectory>false</clearOutputDirectory>
<checkStaleness>true</checkStaleness> <checkStaleness>true</checkStaleness>
@ -1464,7 +1464,9 @@
<log4j.version>1.2.17</log4j.version> <log4j.version>1.2.17</log4j.version>
<mockito-core.version>2.28.2</mockito-core.version> <mockito-core.version>2.28.2</mockito-core.version>
<!--Internally we use a different version of protobuf. See hbase-protocol-shaded--> <!--Internally we use a different version of protobuf. See hbase-protocol-shaded-->
<external.protobuf.groupid>com.google.protobuf</external.protobuf.groupid>
<external.protobuf.version>2.5.0</external.protobuf.version> <external.protobuf.version>2.5.0</external.protobuf.version>
<external.protoc.version>${external.protobuf.version}</external.protoc.version>
<protobuf.plugin.version>0.6.1</protobuf.plugin.version> <protobuf.plugin.version>0.6.1</protobuf.plugin.version>
<thrift.path>thrift</thrift.path> <thrift.path>thrift</thrift.path>
<thrift.version>0.14.1</thrift.version> <thrift.version>0.14.1</thrift.version>
@ -4032,6 +4034,19 @@
</pluginManagement> </pluginManagement>
</build> </build>
</profile> </profile>
<profile>
<id>aarch64</id>
<properties>
<external.protobuf.groupid>org.openlabtesting.protobuf</external.protobuf.groupid>
<external.protoc.version>2.5.0.2</external.protoc.version>
</properties>
<activation>
<os>
<family>linux</family>
<arch>aarch64</arch>
</os>
</activation>
</profile>
</profiles> </profiles>
<!-- See https://jira.codehaus.org/browse/MSITE-443 why the settings need to be here and not in pluginManagement. --> <!-- See https://jira.codehaus.org/browse/MSITE-443 why the settings need to be here and not in pluginManagement. -->
<reporting> <reporting>