Compilation failure with maven - cannot find symbol - java

I have a maven project forked and cloned from a git repo, i run:
mvn clean install
Return compile error:
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 31 source files to /home/weverton/projetos/trivia/trivia-solver/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/weverton/projetos/trivia/trivia-solver/src/main/java/ru/thevalidator/galaxytriviasolver/module/base/impl/GalaxyBaseRobotImpl.java:[56,68] cannot find symbol
symbol: class SolverImpl
location: package ru.thevalidator.galaxytriviasolver.module.trivia.solver.impl
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.001 s
[INFO] Finished at: 2023-01-22T13:51:30-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project galaxy-trivia-solver: Compilation failure
[ERROR] /home/weverton/projetos/trivia/trivia-solver/src/main/java/ru/thevalidator/galaxytriviasolver/module/base/impl/GalaxyBaseRobotImpl.java:[56,68] cannot find symbol
[ERROR] symbol: class SolverImpl
[ERROR] location: package ru.thevalidator.galaxytriviasolver.module.trivia.solver.impl
[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
Obs: I'm a beginner with java and I'm learning, can someone help me understand so I can solve this problem?

Related

Problems with compilation of project

When I change jdk from 8 to 11 I cought this promlem when I try to compile my project.
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.012 s
[INFO] Finished at: 2019-08-21T14:09:01+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project desktop-client: Compilation failure
[ERROR] /E:/cryptoterminal/usr_desktop-client/src/main/java/com/exs/desktop/cryptoterminal/controls/SystemButton.java:[3,42] package com.sun.org.apache.xerces.internal.dom is not visible
[ERROR] (package com.sun.org.apache.xerces.internal.dom is declared in module java.xml, which does not export it)
[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
PS E:\cryptoterminal\usr_desktop-client>
The package com.sun.org.apache.xerces.internal.dom; is package source of javafx located in C:\Program Files\Java\jdk-11.0.2\lib

Maven build failure for Spring boot with Alexa skill kit

I tried to build the spring boot project for AWS lambda and deploy it. I try to use the following command:
mvn assembly:assembly -DdescriptorId=jar-with-dependencies package
to create a .JAR file.
My output:
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) # requestTestDemoFromAWSLambda ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.668 s
[INFO] Finished at: 2018-01-23T17:06:21+02:00
[INFO] Final Memory: 89M/538M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) on project requestTestDemoFromAWSLambda: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.9.RELEASE:repackage failed: Unable to rename 'D:\alexaWork\requestTestDemoFromAWSLambda\target\requestTestDemoFromAWSLambda-0.0.1-SNAPSHOT.jar' to 'D:\alexaWork\requestTestDemoFromAWSLambda\target\requestTestDemoFromAWSLambda-0.0.1-SNAPSHOT.jar.original' -> [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/PluginExecutionException
As you see is not working

Maven: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly

I am trying to compile a project with Maven. I have used this command mvn assembly:assembly and I get the following error. This is with OPENIMAJ. I use option 7 (7: internal -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.)) as an archtype.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.021 s
[INFO] Finished at: 2017-03-27T17:19:42+01:00
[INFO] Final Memory: 11M/243M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly (default-cli) on project tester: Error reading assemblies: No assembly descriptors found. -> [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/MojoExecutionException
How can I fix this?

Zeppelin build failure - Failed to run task: 'grunt --no-color' failed

I want to install Apache Zeppelin on OSX 10.8, but build fails for some mysterious reasons. Specs: Java 1.7, Maven 3.3, node v0.12.4 and grunt v0.1.13.
I'm running the following command:
mvn clean package -DskipTests
And I am getting the following output :
[INFO] Zeppelin: web Application .......................... FAILURE [ 18.310 s]
[INFO] Zeppelin: Server ................................... SKIPPED
[INFO] Zeppelin: Packaging distribution ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:53 min
[INFO] Finished at: 2016-01-14T18:32:13-05:00
[INFO] Final Memory: 78M/387M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:grunt (grunt build) on project zeppelin-web: Failed to run task: 'grunt --no-color' failed. (error code 3) -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zeppelin-web
It seems to be some errors with grunt, but I'm not sure.

Maven Site Error: class file for org.jaxen.VariableContext not found

I'm trying to make the JavaDoc of my maven-project. So i added the plugin to my parent project and all of it sons have the same configuration by default. But unfortunately i have a big problem. When I run maven site into my project it throws this error: https://gist.github.com/rhuankarlus/8416752935567572e60f
I don't use the jaxen dependency in the project so I don't understand this error.
Googling it I found nothing.
Here's part of error message:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] empresa Corporativo Root ............................. FAILURE [1:43.624s]
[INFO] empresa Generico ..................................... SKIPPED
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:44.255s
[INFO] Finished at: Fri Sep 12 15:17:34 BRT 2014
[INFO] Final Memory: 49M/237M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "template-config-empresa" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project empresa-corporativo-root: Error during page generation: Error rendering Maven r
eport:
[ERROR] Exit code: 1 - Errors happened while accessing the package-list file at ../apidocs/
[ERROR] Unable to access the package-list file at D:/Desenvolvimento/Repositorios/empresa-corporativo/trunk/target/javadoc-bundle-options/
[ERROR] Errors happened while accessing the package-list file at ../apidocs/
[ERROR] Unable to access the package-list file at D:/Desenvolvimento/Repositorios/empresa-corporativo/trunk/target/javadoc-bundle-options/
[ERROR] Errors happened while accessing the package-list file at ../apidocs/
[ERROR] Unable to access the package-list file at D:/Desenvolvimento/Repositorios/empresa-corporativo/trunk/target/javadoc-bundle-options/
[ERROR] javadoc: warning - Error!
[ERROR] javadoc: warning - com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jaxen.VariableContext not found
[ERROR] com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jaxen.VariableContext not found
[ERROR]
[ERROR] Command line was: "C:\Program Files\Java\jdk1.7.0_55\jre\..\bin\javadoc.exe" #options #packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'D:\Desenvolvimento\Repositorios\empresa-corporativo\trunk\target\site\testapidocs' dir.
[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.

Categories