Add the JDK to Maven toolchains: Create toolchains.xml describing the JDK installed at the previous step and put it into ~/.m2/. toolchains.xml is like below: <?xml version="1.0" encoding="UTF-8"?> <toolchains xmlns="http://maven.apache.org/TOOLCHAINS/1.1.0" xmlns:xsi="http://www...