[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project bahmni-mapping:

  1. Cloned the git repository bahmni-core.
  2. Tried to run the build mvn clean install. But it fails.
  3. The error message is [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project bahmni-mapping: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?