在 M1/M2 Chip 的 Mac 上无法编译通过
khotyn opened this issue · 8 comments
khotyn commented
详细错误如下:
[ERROR] Failed to execute goal on project sofa-rpc-remoting-http: Could not resolve dependencies for project com.alipay.sofa:sofa-rpc-remoting-http:jar:5.9.1: io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.25.Final was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
需要升级 netty-tcnative-boringssl-static 的版本。
khotyn commented
所依赖的 protoc 也需要升级:
[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (default) on project sofa-rpc-remoting-triple: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:3.7.1
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) com.alipay.sofa:sofa-rpc-remoting-triple:jar:5.9.1
[ERROR] 2) com.google.protobuf:protoc:exe:osx-aarch_64:3.7.1
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
StringKe commented
上游还没更新么?
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
khotyn commented
Still waiting sofastack/sofa-registry#327 to complete so we can have a sofa registry-test version that is compatible with aarch.