Maven Build Broken on Linux but not on Mac OSX | Community
Skip to main content
benb9073991
Level 2
February 6, 2018

Maven Build Broken on Linux but not on Mac OSX

  • February 6, 2018
  • 1 reply
  • 2862 views

We have an AEM 6.3 project. Most of our devs are on windows and mac. We are trying to replicate the building of the package on ubuntu 16.04 but the build is getting an error.

On an example linuxmachine where the package builds successfully:

Maven config of our Ubuntu machine

JDK is installed on this machine:

Our error:

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

smacdonald2008
Level 10
February 6, 2018

We noticed:  JAVA_HOME should be pointed to JDK and not to JRE; Java home: /usr/lib/jvm/java-8-oracle/jre?

benb9073991
Level 2
February 6, 2018

That's a great point, however, I am not finding any specific documentation for where that should point to.

which javac returns

which cannot be set as $JAVA_HOME

benb9073991
Level 2
February 6, 2018

For those reading this thread - here is a great overview of setting up an AEM DEV environment:

Getting Started with AEM Sites Part 1 - Project Setup


We followed these instructions to install the JDK

https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04