Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)

publicado por: Anonymous

Estoy usando NetBeans y Maven dejó de compilar, aumento una clase y ya no compila, lo quito y normal, ya intenté borrando el repositorio, cambiando de JDK, JRI, incluso netbeans y nada

_x000D_

_x000D_

cd D:ASUSDocumentsNetBeansProjectsCiudadanos; "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111" cmd /c """D:\NetBeans 8.2\java\maven\bin\mvn.bat" -Dmaven.ext.class.path="D:\NetBeans 8.2\java\maven-nblib\netbeans-eventspy.jar" -Dfile.encoding=UTF-8 clean install""_x000D_
Scanning for projects..._x000D_
                                                                        _x000D_
------------------------------------------------------------------------_x000D_
Building Ciudadanos 1.0-SNAPSHOT_x000D_
------------------------------------------------------------------------_x000D_
_x000D_
--- maven-clean-plugin:2.4.1:clean (default-clean) @ Ciudadanos ---_x000D_
Deleting D:ASUSDocumentsNetBeansProjectsCiudadanostarget_x000D_
_x000D_
--- maven-dependency-plugin:2.6:copy (default) @ Ciudadanos ---_x000D_
_x000D_
--- maven-resources-plugin:2.5:resources (default-resources) @ Ciudadanos ---_x000D_
[debug] execute contextualize_x000D_
Using 'UTF-8' encoding to copy filtered resources._x000D_
Copying 1 resource_x000D_
_x000D_
--- maven-compiler-plugin:3.1:compile (default-compile) @ Ciudadanos ---_x000D_
Changes detected - recompiling the module!_x000D_
Compiling 11 source files to D:ASUSDocumentsNetBeansProjectsCiudadanostargetclasses_x000D_
------------------------------------------------------------------------_x000D_
BUILD FAILURE_x000D_
------------------------------------------------------------------------_x000D_
Total time: 4.095s_x000D_
Finished at: Sat Feb 17 11:30:13 COT 2018_x000D_
Final Memory: 30M/245M_x000D_
------------------------------------------------------------------------_x000D_
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Ciudadanos: Fatal error compiling: java.lang.RuntimeException: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jaxen.FunctionContext not found -> [Help 1]_x000D_
_x000D_
To see the full stack trace of the errors, re-run Maven with the -e switch._x000D_
Re-run Maven using the -X switch to enable full debug logging._x000D_
_x000D_
For more information about the errors and possible solutions, please read the following articles:_x000D_
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

_x000D_

_x000D_

_x000D_

solución

Si no has probado borrando la carpeta m2 y haciendo un maven clean install es probable que en tus dependencias te este faltando esto

<!-- https://mvnrepository.com/artifact/jaxen/jaxen -->
<dependency>
    <groupId>jaxen</groupId>
    <artifactId>jaxen</artifactId>
    <version>1.1.6</version>
</dependency>

Otra opcion es descargar desde aquí la clase que te falta.

Te dejo este link que hace referencia a la pagina que te mencione y este el cual es de la pagina de Stack Overflow en ingles con un problema similar al tuyo y con algunas otras alternativas.
Me avisas si te sirvió, saludos.

Respondido por: Anonymous

Leave a Reply

Your email address will not be published. Required fields are marked *