[ https://issues.apache.org/jira/browse/HBASE-26600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell updated HBASE-26600: ---------------------------------------- Description: Private per build Maven caches won't work on aarch64 MacOS. The problem is we have to compile a patched version of protobuf 2.5.0 binaries and install them into the local cache. (See this gist: https://gist.github.com/liusheng/64aee1b27de037f8b9ccf1873b82c413 . ) Typically the developer will do this once, the results placed into the standard local cache $HOME/.m2/repository . However because the create-release scripts use unconditionally a private repo and similar workarounds for aarch64 MacOS systems are not known to these scripts, the result is a build failure: {noformat} 17:13:57 [INFO] BUILD FAILURE 17:13:57 [ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (compile-protoc) on project hbase-protocol: Unable to resolve artifact: Missing: 17:13:57 [ERROR] ---------- 17:13:57 [ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0 17:13:57 [ERROR] 17:13:57 [ERROR] Try downloading the file manually from the project website. 17:13:57 [ERROR] 17:13:57 [ERROR] Then, install it using the command: 17:13:57 [ERROR] mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file 17:13:57 [ERROR] 17:13:57 [ERROR] Alternatively, if you host your own repository you can deploy the file there: 17:13:57 [ERROR] mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 17:13:57 [ERROR] 17:13:57 [ERROR] Path to dependency: 17:13:57 [ERROR] 1) org.apache.hbase:hbase-protocol:jar:2.4.9 17:13:57 [ERROR] 2) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0 17:13:57 [ERROR] 17:13:57 [ERROR] ---------- 17:13:57 [ERROR] 1 required artifact is missing. 17:13:57 [ERROR] 17:13:57 [ERROR] for artifact: 17:13:57 [ERROR] org.apache.hbase:hbase-protocol:jar:2.4.9 17:13:57 [ERROR] 17:13:57 [ERROR] from the specified remote repositories: 17:13:57 [ERROR] apache.snapshots (https://repository.apache.org/snapshots, releases=false, snapshots=true), 17:13:57 [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) {noformat} was: Private per build Maven caches won't work on aarch64 MacOS. The problem is we have to compile a patched version of protobuf 2.5.0 binaries and install them into the local cache. Typically the developer will do this once, the results placed into the standard local cache $HOME/.m2/repository . However because the create-release scripts use unconditionally a private repo and similar workarounds for aarch64 MacOS systems are not known to these scripts, the result is a build failure: {noformat} 17:13:57 [INFO] BUILD FAILURE 17:13:57 [ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (compile-protoc) on project hbase-protocol: Unable to resolve artifact: Missing: 17:13:57 [ERROR] ---------- 17:13:57 [ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0 17:13:57 [ERROR] 17:13:57 [ERROR] Try downloading the file manually from the project website. 17:13:57 [ERROR] 17:13:57 [ERROR] Then, install it using the command: 17:13:57 [ERROR] mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file 17:13:57 [ERROR] 17:13:57 [ERROR] Alternatively, if you host your own repository you can deploy the file there: 17:13:57 [ERROR] mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 17:13:57 [ERROR] 17:13:57 [ERROR] Path to dependency: 17:13:57 [ERROR] 1) org.apache.hbase:hbase-protocol:jar:2.4.9 17:13:57 [ERROR] 2) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0 17:13:57 [ERROR] 17:13:57 [ERROR] ---------- 17:13:57 [ERROR] 1 required artifact is missing. 17:13:57 [ERROR] 17:13:57 [ERROR] for artifact: 17:13:57 [ERROR] org.apache.hbase:hbase-protocol:jar:2.4.9 17:13:57 [ERROR] 17:13:57 [ERROR] from the specified remote repositories: 17:13:57 [ERROR] apache.snapshots (https://repository.apache.org/snapshots, releases=false, snapshots=true), 17:13:57 [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) {noformat} > [branch-2, create-release] Private per build Maven caches won't work on > aarch64 MacOS > ------------------------------------------------------------------------------------- > > Key: HBASE-26600 > URL: https://issues.apache.org/jira/browse/HBASE-26600 > Project: HBase > Issue Type: Bug > Environment: Apache Maven 3.8.4 > (9b656c72d54e5bacbed989b64718c159fe39b537) > Maven home: /opt/homebrew/Cellar/maven/3.8.4/libexec > Java version: 1.8.0_312, vendor: Azul Systems, Inc., runtime: > /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "mac os x", version: "12.0.1", arch: "aarch64", family: "mac" > Reporter: Andrew Kyle Purtell > Priority: Minor > > Private per build Maven caches won't work on aarch64 MacOS. The problem is we > have to compile a patched version of protobuf 2.5.0 binaries and install them > into the local cache. (See this gist: > https://gist.github.com/liusheng/64aee1b27de037f8b9ccf1873b82c413 . ) > Typically the developer will do this once, the results placed into the > standard local cache $HOME/.m2/repository . However because the > create-release scripts use unconditionally a private repo and similar > workarounds for aarch64 MacOS systems are not known to these scripts, the > result is a build failure: > {noformat} > 17:13:57 [INFO] BUILD FAILURE > 17:13:57 [ERROR] Failed to execute goal > org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile > (compile-protoc) on project hbase-protocol: Unable to resolve artifact: > Missing: > 17:13:57 [ERROR] ---------- > 17:13:57 [ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0 > 17:13:57 [ERROR] > 17:13:57 [ERROR] Try downloading the file manually from the project website. > 17:13:57 [ERROR] > 17:13:57 [ERROR] Then, install it using the command: > 17:13:57 [ERROR] mvn install:install-file -DgroupId=com.google.protobuf > -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe > -Dfile=/path/to/file > 17:13:57 [ERROR] > 17:13:57 [ERROR] Alternatively, if you host your own repository you can > deploy the file there: > 17:13:57 [ERROR] mvn deploy:deploy-file -DgroupId=com.google.protobuf > -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > 17:13:57 [ERROR] > 17:13:57 [ERROR] Path to dependency: > 17:13:57 [ERROR] 1) org.apache.hbase:hbase-protocol:jar:2.4.9 > 17:13:57 [ERROR] 2) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0 > 17:13:57 [ERROR] > 17:13:57 [ERROR] ---------- > 17:13:57 [ERROR] 1 required artifact is missing. > 17:13:57 [ERROR] > 17:13:57 [ERROR] for artifact: > 17:13:57 [ERROR] org.apache.hbase:hbase-protocol:jar:2.4.9 > 17:13:57 [ERROR] > 17:13:57 [ERROR] from the specified remote repositories: > 17:13:57 [ERROR] apache.snapshots (https://repository.apache.org/snapshots, > releases=false, snapshots=true), > 17:13:57 [ERROR] central (https://repo.maven.apache.org/maven2, > releases=true, snapshots=false) > {noformat} -- This message was sent by Atlassian Jira (v8.20.1#820001)