Fala pessoal, blz?
Estou acompanhando a segunda aula sobre maven e esbarrei nesse problema aqui, segui todos os passos como na aula e ta dando bastante dor de cabeça pra resolver.
Mais alguem ja tomou esse erro?
OBS: Ja tentei com sudo e sem sudo, excluindo pasta, mudando o diretorio.
Segue a saida do Erro.
Obrigado.
╭─paulosilva@Paulos-MacBook-Pro ~/Documents/maven/produtos5
╰─$ mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< br.com.alura.maven1:produtos5 >--------------------
[INFO] Building produtos5 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ produtos5 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/paulosilva/Documents/maven/produtos5/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ produtos5 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/paulosilva/Documents/maven/produtos5/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.699 s
[INFO] Finished at: 2020-08-11T18:50:03-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project produtos5: Compilation failure: Compilation failure:
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 or later.
[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