Olá pessoal,
Estou tendo problemas para compilar duas classes simples: Uma com getters e setters e outra com o Main para execução.
Procedimento: Botão direito sobre pom.xml -> Run As -> Maven install.
Segue abaixo trecho do erro:
[INFO] Scanning for projects... [INFO][INFO] ------------------------------------------------------------------------ [INFO] Building produtos 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ produtos --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Users\bruno.joao\eclipse-workspace\produtos\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ produtos --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to C:\Users\bruno.joao\eclipse-workspace\produtos\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.571 s [INFO] Finished at: 2018-06-21T10:10:17-03:00 [INFO] Final Memory: 9M/232M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project produtos: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException