[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:x.x.x:compile (default-compile) on project project-name: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]

You should put in mind that maven needs a jdk and not a jre to run. so if you have the same message in your console try to do this steps:

  1. In your editor (IDE) go to Window > Preferences > Java > Installed JREs
  2. delete jre import
  3. add the path of your jdk in place (like JAVA_HOME once)

rebuild your maven project and now sure all goes right ^^

Aller au contenu principal