|
| 1 | +diff --git a/pom.xml b/pom.xml |
| 2 | +index e849cd1..f514e14 100644 |
| 3 | +--- a/pom.xml |
| 4 | ++++ b/pom.xml |
| 5 | +@@ -157,7 +157,10 @@ |
| 6 | + <extra.enforcer.version>1.5.1</extra.enforcer.version> |
| 7 | + <restrict-imports.enforcer.version>0.14.0</restrict-imports.enforcer.version> |
| 8 | + <!--Internally we use a different version of protobuf. See hbase-protocol-shaded--> |
| 9 | +- <external.protobuf.version>2.5.0</external.protobuf.version> |
| 10 | ++ <!-- com.google repo will be used except on Aarch64 platform. --> |
| 11 | ++ <external.protobuf.groupId>com.google.protobuf</external.protobuf.groupId> |
| 12 | ++ <external.protobuf.version>2.6.1</external.protobuf.version> |
| 13 | ++ <external.protobuf.exe.version>${external.protobuf.version}</external.protobuf.exe.version> |
| 14 | + <protobuf.plugin.version>0.5.0</protobuf.plugin.version> |
| 15 | + <commons-io.version>2.11.0</commons-io.version> |
| 16 | + <avro.version>1.7.7</avro.version> |
| 17 | +@@ -933,5 +936,19 @@ |
| 18 | + </plugins> |
| 19 | + </build> |
| 20 | + </profile> |
| 21 | ++ <!-- use com.github.os72 on aarch64 platform --> |
| 22 | ++ <profile> |
| 23 | ++ <id>aarch64</id> |
| 24 | ++ <properties> |
| 25 | ++ <external.protobuf.groupId>com.github.os72</external.protobuf.groupId> |
| 26 | ++ <external.protobuf.exe.version>2.6.1-build3</external.protobuf.exe.version> |
| 27 | ++ </properties> |
| 28 | ++ <activation> |
| 29 | ++ <os> |
| 30 | ++ <family>linux</family> |
| 31 | ++ <arch>aarch64</arch> |
| 32 | ++ </os> |
| 33 | ++ </activation> |
| 34 | ++ </profile> |
| 35 | + </profiles> |
| 36 | + </project> |
| 37 | +diff --git a/spark/pom.xml b/spark/pom.xml |
| 38 | +index 3f1eb21..fcdc73e 100644 |
| 39 | +--- a/spark/pom.xml |
| 40 | ++++ b/spark/pom.xml |
| 41 | +@@ -84,7 +84,7 @@ |
| 42 | + <artifactId>protobuf-maven-plugin</artifactId> |
| 43 | + <version>${protobuf.plugin.version}</version> |
| 44 | + <configuration> |
| 45 | +- <protocArtifact>com.google.protobuf:protoc:${external.protobuf.version}:exe:${os.detected.classifier}</protocArtifact> |
| 46 | ++ <protocArtifact>${external.protobuf.groupId}:protoc:${external.protobuf.exe.version}:exe:${os.detected.classifier}</protocArtifact> |
| 47 | + <protoSourceRoot>${basedir}/src/main/protobuf/</protoSourceRoot> |
| 48 | + <clearOutputDirectory>false</clearOutputDirectory> |
| 49 | + <checkStaleness>true</checkStaleness> |
0 commit comments