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

0

I am using NetBeans and Maven stopped compiling, I increase a class and it no longer compiles, I remove it and normal, I already tried deleting the repository, changing JDK, JRI, even netbeans and nothing

cd D:\ASUS\Documents\NetBeansProjects\Ciudadanos; "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\""
Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building Ciudadanos 1.0-SNAPSHOT
------------------------------------------------------------------------

--- maven-clean-plugin:2.4.1:clean (default-clean) @ Ciudadanos ---
Deleting D:\ASUS\Documents\NetBeansProjects\Ciudadanos\target

--- maven-dependency-plugin:2.6:copy (default) @ Ciudadanos ---

--- maven-resources-plugin:2.5:resources (default-resources) @ Ciudadanos ---
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
Copying 1 resource

--- maven-compiler-plugin:3.1:compile (default-compile) @ Ciudadanos ---
Changes detected - recompiling the module!
Compiling 11 source files to D:\ASUS\Documents\NetBeansProjects\Ciudadanos\target\classes
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 4.095s
Finished at: Sat Feb 17 11:30:13 COT 2018
Final Memory: 30M/245M
------------------------------------------------------------------------
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]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    
asked by user75463 17.02.2018 в 16:39
source

1 answer

0

If you have not tried deleting the m2 folder and doing a maven clean install it is likely that in your dependencies you are missing this

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

Another option is download from here the class you're missing.

I leave this link that refers to the page that mentions you and this which is from the Stack Overflow page in English with a problem similar to yours and with some other alternatives. You let me know if it worked for you, regards.

    
answered by 17.02.2018 / 17:09
source