Tentei compilar o projeto recém criado mas deu erro. Segue informações que apareceram.
C:\Users\DeMayo\Documents\workspace\blog>mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< br.com.jeff.maven:blog >-----------------------
[INFO] Building blog 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ blog ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\DeMayo\Documents\workspace\blog\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ blog ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\Users\DeMayo\Documents\workspace\blog\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: 7.389 s
[INFO] Finished at: 2019-10-01T19:12:50-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project blog: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR]
[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
Estou precisando de ajuda para prosseguir com o curso. Agradeço a ajuda desde já.
Vi essa parte do erro "Perhaps you are running on a JRE rather than a JDK?" e fui verificar. Quando fiz a troca ele nem mesmo criou o projeto ou reconheceu o Maven. Posso estar esquecendo de acrescentar os caminhos corretos em algum lugar??