As of today, my maven compile fails.
[INFO] [ERROR] Unexpected [INFO] java.lang.OutOfMemoryError: Java heap space [INFO] at java.util.Arrays.copyOfRange(Arr
I got same problem when compiling Druid.io, increasing the MaxDirectMemorySize finally worked.
export MAVEN_OPTS="-Xms8g -Xmx8g -XX:MaxDirectMemorySize=4096m"