Mac开发Ozone环境配置
当前ozone是 1.4.0-SNAPSHOT版,如果在mac上面运行
mvn clean verify -DskipTests
会提示如下错误:
[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (compile-protoc-2) on project hdds-interface-client: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0
解决办法是在maven的settings.xml中配置一下:
<settings>
<activeProfiles>
<activeProfile>
apple-silicon
</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>apple-silicon</id>
<properties>
<os.detected.classifier>osx-x86_64</os.detected.classifier>
</properties>
</profile>
</profiles>
</settings>
这个时候再运行mvn clean verify -DskipTests,就成功了。