28 December 2021

Compile Apache Wayang on Mac M1

We release Apache Wayang v0.6.0 in the next days, and during the release testing we was wondering if we get Wayang on M1 (ARM) running. And yes, a few small changes - voila!

Install maven, scala, sqlite and groovy:
brew install maven scala groovy sqlite

Download openJDK 8 for M1: 
https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk and install the pkg. 

Get Apache Wayang either from https://dist.apache.org/repos/dist/dev/wayang/, or git-clone directly:

git clone https://github.com/apache/incubator-wayang.git

Start the build process:

cd incubator-wayang
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home

mvn clean install

Ready to go:

[INFO] Reactor Summary for Apache Wayang 0.6.0-SNAPSHOT:
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  06:24 min

After the build is done the binaries are located in mavens home:

most read