Problems with compilation of project - java

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

Related

Compilation failure with maven - cannot find symbol

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?

Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4

while I am running my java project I got below error
IFMIS-ear .......................................... FAILURE [ 26.330 s]
IFMIS .............................................. SKIPPED
BUILD FAILURE
------------------------------------------------------------------------
Total time: 01:07 min
Finished at: 2019-04-23T10:57:35+05:30
Final Memory: 49M/660M
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:JBoss-as-maven-
plugin:7.4.Final: deploy (default) on project IFMIS-ear: Deployment failed
and was rolled back. -> [Help 1]
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :IFMIS-ear
I am new to this java development,kindly anyone tells me how to fix this.

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?

Maven and open Km build failure

I am facing this issue when I am deploying my openkm application using Maven:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.316 sError log,
[INFO] Finished at: 2016-12-15T09:31:54+03:00
[INFO] Final Memory: 20M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.1:compile (default-cli) on project openkm: GWT Module com.googlecode.gwt.crypto.Crypto not found in project sources or resources. -> [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
com.googlecode.gwt.crypto.Crypto not found in project sources
Please make sure your dependencies include
<dependency>
<groupId>com.googlecode.gwt-crypto</groupId>
<artifactId>gwt-crypto</artifactId>
<version>2.3.0</version>
</dependency>

Categories