title: How to set up apache ranger on apple macbook pro m1
body: <p>I'm trying to set up apache ranger for work using this <a href="https://github.com/apache/ranger/tree/master/dev-support/ranger-docker" rel="nofollow noreferrer">https://github.com/apache/ranger/tree/master/dev-support/ranger-docker</a>
  however by running</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>mvn clean package -DskipTests</code></pre>
  </div>
  </div>
  </p>
  <p>I'm getting the following error: <em>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded (prepare) on project security-admin-web: Execution prepare of goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded failed: Unable to load the mojo 'exploded' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.6' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null</em>  The entire error can be seen in this picture:
  [1]</p>
  <p>and as an alternative provided in the github, when I run:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>docker-compose -f docker-compose.ranger-base.yml -f docker-compose.ranger-build.yml up</code></pre>
  </div>
  </div>
  </p>
  <p>I get the error:
  ranger-build    | The JAVA_HOME environment variable is not defined correctly
  ranger-build    | This environment variable is needed to run this program
  ranger-build    | NB: JAVA_HOME should point to a JDK not a JRE
  ranger-build    | mv: cannot stat 'target/ranger-*': No such file or directory
  ranger-build exited with code 1</p>
  <p>I have also tried following <a href="https://medium.com/swlh/hands-on-apache-ranger-docker-poc-with-hadoop-hdfs-hive-presto-814344a03a17" rel="nofollow noreferrer">https://medium.com/swlh/hands-on-apache-ranger-docker-poc-with-hadoop-hdfs-hive-presto-814344a03a17</a>
  however it gets stuck in the ranger-admin container and localhost:6080 doesn't work.
  [1]: <a href="https://i.stack.imgur.com/57ubI.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/57ubI.jpg</a></p>