Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

479
Views
Error de compilación, ejecute "mvn clean install". Acabo de actualizar Big Sur

falla de construcción de instalación limpia de mvn

 [INFO] Total time: 1.911 s [INFO] Finished at: 2020-11-14T19:07:37+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project es-starter: 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

Entorno Java y Maven

 ➜ ~ which java /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java ➜ ~ mvn -v Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T03:00:29+08:00) Maven home: /Users/munan/Documents/work/develop/maven/apache-maven-3.6.1 Java version: 1.8.0_192, vendor: Oracle Corporation, runtime: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home Default locale: zh_CN, platform encoding: UTF-8 OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

Parece que no hay problema con el medio ambiente. Entonces, ¿dónde está el problema que hizo que fallara la compilación?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

BigSur agregó la ruta JRE por alguna razón y desinstalé el JRE porque necesitaba el JDK (y no el JRE) y funcionó.

  1. Vaya a /Biblioteca/Complementos de Internet.
  2. Elimine el directorio JavaAppletPlugin.plugin ejecutando el comando rm como usuario root o utilizando la herramienta sudo.
  3. Vaya a /Library/PreferencePanes.
  4. Elimine JavaControlPanel.prefpane ejecutando el comando rm como usuario root o utilizando la herramienta sudo.
over 4 years ago · Santiago Trujillo Report

0

¡Estaba enfrentando el mismo problema después de actualizar mi Mac a Big Sur!

BigSur agregó la ruta JRE por alguna razón y una prioridad más alta que usted mismo JDK。

Aquí está mi solución:

Primero:

 /usr/libexec/java_home -V

entonces tal vez obtendrás:

 Matching Java Virtual Machines (2): 1.8.202.08 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home 1.8.0_202 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home

entonces el segundo es nuestro JDK real. Simplemente edite JAVA_HOME en su perfil bash.

 vim ~/.zshrc export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home" source vim ~/.zshrc echo $JAVA_HOME

¡Entonces funcionará! ¡disfruta Bug Sur!

O puede reinstalar jdk8 con este cmd:

 brew tap adoptopenjdk/openjdk brew cask install adoptopenjdk8
over 4 years ago · Santiago Trujillo Report

0

¡Estaba enfrentando el mismo problema después de actualizar mi Mac a Big Sur! Así que configuré mi variable de entorno JAVA_HOME y ahora todo volvió a su negocio. Abra la terminal y presione los siguientes comandos para resolverlo usted mismo.

 $ vim .bash_profile export JAVA_HOME=$(/usr/libexec/java_home) $ source .bash_profile $ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home

Verifique su java_home ejecutando:

/usr/libexec/java_home -V

Lea más sobre esto aquí: https://mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!