Building Apache Ozone on Mac M3 #6783
siddhantsangwan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using Rosetta (non native build)
Check if Rosetta is already installed:
Install Rosetta:
Next, follow https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=217392150 and then build Ozone with the usual
mvn clean package -DskipTests -DskipShade
.Native Build
I found a way to make this work through a lot of debugging, googling, and experimentation. Note that I had already installed Rosetta at this point, so I'm not even 100% sure that this is actually a native build.
settings.xml (skip this if you hadn't used Rosetta earlier)
If you had edited your
~/.m2/settings.xml
earlier for Rosetta, use a different .xml file for the native build. You can use the-s
option of themvn
command to use a different .xml file while building.For example, I have two .xml files in
~/.m2
. The first is calledsettings.xml
and I use this for the native build (the build uses this by default):The second is called
s.xml
and I use this with Rosetta:My build command for Rosetta is
mvn clean package -DskipTests -DskipShade -s s.xml
.Change pom.xml files
Follow the commands in the 'Protobuf' section here https://gist.github.com/smengcl/6a269f44d909ef9245a9ad8c7c6d41e0/#protobuf. Next, apply the following diff. It changes the versions of some dependencies in various
pom.xml
files. Replace~/.m2
with the path to your.m2
directory.Beta Was this translation helpful? Give feedback.
All reactions