Estou bem no inicio tentando configurar o maven, mas quando eu executo o comando mvn clean package aparece o erro abaixo.
Eu pesquisei de varias formas, já desistalei e instalei novamente o java, mas o problema continua
[INFO] Scanning for projects... [INFO] [INFO] -------------------------< br.com.alura:forum >------------------------- [INFO] Building forum 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] 1 problem was encountered while building the effective model for org.javassist:javassist:jar:3.24.0-GA during dependency collection step for project (use -X to see details) [INFO] [INFO] --- clean:3.1.0:clean (default-clean) @ forum --- [INFO] Deleting /Users/cavalcantis/Documents/SRE/prometheus-grafana/app/target [INFO] [INFO] --- resources:3.1.0:resources (default-resources) @ forum --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] Copying 1 resource [INFO] [INFO] --- compiler:3.8.1:compile (default-compile) @ forum --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 28 source files to /Users/cavalcantis/Documents/SRE/prometheus-grafana/app/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: 1.342 s [INFO] Finished at: 2025-04-25T00:06:27-03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project forum: 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