Getting Error At the time of running the
mvn appengine:endpoints_get_client_lib
I got their are some issue with the maven plugin but how can i solve them.
error Log is given below.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building claritus-travelaware 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- appengine-maven-plugin:1.9.42:endpoints_get_client_lib (default-cli) # claritus-travelaware ---
[INFO]
[INFO] Google App Engine Java SDK - Generate endpoints get client lib
[INFO] Using Class Name:com.claritus.travelaware.endpoint.UserLocationEP
[INFO] Using Class Name:com.claritus.travelaware.endpoint.SubscribeUserEP
[INFO] Using Class Name:com.claritus.travelaware.YourFirstAPI
[INFO] Executing endpoints Command=[get-client-lib, -cp, /home/claritus/Desktop/workspace/claritus-travelaware/target/claritus-travelaware-1.0-SNAPSHOT/WEB-INF/classes:/home/claritus/Desktop/workspace/claritus-travelaware/target/classes:/home/claritus/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.9.42/appengine-api-1.0-sdk-1.9.42.jar:/home/claritus/.m2/repository/com/google/appengine/appengine-endpoints/1.9.42/appengine-endpoints-1.9.42.jar:/home/claritus/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/home/claritus/.m2/repository/mysql/mysql-connector-java/5.1.31/mysql-connector-java-5.1.31.jar:/home/claritus/.m2/repository/org/hibernate/hibernate-core/4.2.0.Final/hibernate-core-4.2.0.Final.jar:/home/claritus/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/home/claritus/.m2/repository/org/jboss/logging/jboss-logging/3.1.0.GA/jboss-logging-3.1.0.GA.jar:/home/claritus/.m2/repository/org/jboss/spec/javax/transaction/jboss-transaction-api_1.1_spec/1.0.0.Final/jboss-transaction-api_1.1_spec-1.0.0.Final.jar:/home/claritus/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/home/claritus/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.1.Final/hibernate-jpa-2.0-api-1.0.1.Final.jar:/home/claritus/.m2/repository/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar:/home/claritus/.m2/repository/org/hibernate/common/hibernate-commons-annotations/4.0.1.Final/hibernate-commons-annotations-4.0.1.Final.jar:/home/claritus/.m2/repository/org/springframework/security/spring-security-core/4.0.4.RELEASE/spring-security-core-4.0.4.RELEASE.jar:/home/claritus/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/home/claritus/.m2/repository/org/springframework/spring-beans/4.2.5.RELEASE/spring-beans-4.2.5.RELEASE.jar:/home/claritus/.m2/repository/org/springframework/spring-context/4.2.5.RELEASE/spring-context-4.2.5.RELEASE.jar:/home/claritus/.m2/repository/org/springframework/spring-expression/4.2.5.RELEASE/spring-expression-4.2.5.RELEASE.jar:/home/claritus/.m2/repository/org/springframework/spring-core/4.2.5.RELEASE/spring-core-4.2.5.RELEASE.jar:/home/claritus/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/home/claritus/.m2/repository/org/springframework/spring-aop/4.2.5.RELEASE/spring-aop-4.2.5.RELEASE.jar:/home/claritus/.m2/repository/org/springframework/spring-webmvc/4.2.5.RELEASE/spring-webmvc-4.2.5.RELEASE.jar:/home/claritus/.m2/repository/org/springframework/spring-web/4.2.5.RELEASE/spring-web-4.2.5.RELEASE.jar, -o, /home/claritus/Desktop/workspace/claritus-travelaware/target/generated-sources/appengine-endpoints/WEB-INF, -w, /home/claritus/Desktop/workspace/claritus-travelaware/target/generated-sources/appengine-endpoints, -l, java, -bs, maven, com.claritus.travelaware.endpoint.UserLocationEP, com.claritus.travelaware.endpoint.SubscribeUserEP, com.claritus.travelaware.YourFirstAPI]
API client library written to /home/claritus/Desktop/workspace/claritus-travelaware/target/generated-sources/appengine-endpoints/WEB-INF/userLocation-v1-java.zip
API client library written to /home/claritus/Desktop/workspace/claritus-travelaware/target/generated-sources/appengine-endpoints/WEB-INF/subscribeUsers-v1-java.zip
API client library written to /home/claritus/Desktop/workspace/claritus-travelaware/target/generated-sources/appengine-endpoints/WEB-INF/firstApi-v1-java.zip
[INFO] BUILDING Endpoints Client Library from: /home/claritus/Desktop/workspace/claritus-travelaware/target/endpoints-client-libs/firstApi/pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.227 s
[INFO] Finished at: 2016-09-16T10:07:40+05:30
[INFO] Final Memory: 19M/170M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.42:endpoints_get_client_lib (default-cli) on project claritus-travelaware: Execution default-cli of goal com.google.appengine:appengine-maven-plugin:1.9.42:endpoints_get_client_lib failed: ${maven.home} is not specified as a directory: '/home/claritus/Desktop/workspace/claritus-travelaware/EMBEDDED'. -> [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
Related
Can any one help me? Why this is happen, and how to solve this error?
I try to run mvn clean package -DskipTests
[INFO]
[INFO] -------------------< com.hybris.hybris123:hybris123 >-------------------
[INFO] Building hybris123 1.1
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # hybris123 ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # hybris123 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.723 s
[INFO] Finished at: 2022-01-13T16:41:34+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0:resources (default-resources) on project hybris123: Cannot create resource output directory: /opt/CXCOMM210500P_0-70005661/hybris123/target/classes -> [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
My Java Home variable is /usr/lib/jvm/java-11-openjdk-amd64
And My maven variable like this :
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}
Please Help me
when I use the command mvn clean quarkus: dev, I get the following response from the terminal in intellij:
E:\api-hard-lot>mvn clean quarkus:dev
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.acme:code-with-quarkus >---------------------
[INFO] Building code-with-quarkus 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # code-with-quarkus ---
[INFO] Deleting E:\api-hard-lot\target
[INFO]
[INFO] --- quarkus-maven-plugin:1.13.2.Final:dev (default-cli) # code-with-quarkus ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 31 source files to E:\api-hard-lot\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.052 s
[INFO] Finished at: 2021-04-25T12:02:55-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.13.2.Final:dev (default-cli) on project code-with-quarkus: Fatal error
compiling: invalid target release: 11 -> [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
'cmd' is not recognized as an internal command
or external, an operable program or a batch file.
Your project was created using JDK 11 and thus mandates JDK 11 while you are trying to build it with a JDK inferior to 11.
Either update your JDK (recommended) or adjust your project to be JDK 8 compatible (replace occurrences of 11 with 1.8 in your pom file).
thanks guys thats exactly my solution i alter to jdk 8 and
in pom
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
and
in code-with-quarkus
Why it still fails even after setting the WebContent as the Resource?
This solution doesn't help
[INFO] --- maven-war-plugin:2.2:war (default-war) # ESWebApp ---
[INFO] Packaging webapp
[INFO] Assembling webapp [ESWebApp] in
[/Users/alim/practice/ElasticSearchAutoComplete/webApp-api/target/webapp-api]
[INFO] Processing war project
[INFO] Copying webapp webResources
[/Users/alim/practice/ElasticSearchAutoComplete/webApp-api/WebContent\WEB-INF\pages] to
[/Users/alim/practice/ElasticSearchAutoComplete/webApp-api/target/webapp-api]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.863 s
[INFO] Finished at: 2018-11-25T21:17:49+08:00
[INFO] Final Memory: 25M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project ESWebApp: Could not copy resource
[/Users/alim/practice/ElasticSearchAutoComplete/webApp-api/WebContent\WEB-INF\pages]: File /Users/alim/practice/ElasticSearchAutoComplete/webApp-api/WebContent\WEB-INF\pages/autocomplete.jsp does not exist -> [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
Please take a look.
Thanks in advance
I just downloaded the version 1.8 of Keycloak (the version called Demo), containing some projects already done on a JBoss application server that should be easily tested.
I installed the product and I'm able to access to it.
I checked the pre-requirements:
java -version > 1.8.0_65 (1.8.* needed)
mvn -version > 3.10.0 (3.2.1 needed)
git --version > Installed
Just following the tutorial in YouTube ("Keycloak Tutorial: The Basics Part 2"), when I enter in the directory where is present the pom.xml file, I launch "mvn jboss-as:deploy", but the JBoss showes me this error:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Examples ........................................... SUCCESS [ 2.093 s]
[INFO] Customer Portal - Secured via Valve ................ FAILURE [ 6.766 s]
[INFO] Customer Portal CLI ................................ SKIPPED
[INFO] Customer Portal JS ................................. SKIPPED
[INFO] Product Portal ..................................... SKIPPED
[INFO] EAR example ........................................ SKIPPED
[INFO] Admin Access Example ............................... SKIPPED
[INFO] Angular Product Portal JS .......................... SKIPPED
[INFO] JAX-RS Database Service Using OAuth Bearer Tokens .. SKIPPED
[INFO] Simple OAuth Client ................................ SKIPPED
[INFO] Simple OAuth Client Using CDI and JSF .............. SKIPPED
[INFO] Service Account Example App ........................ SKIPPED
[INFO] Offline Access Portal .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.568 s
[INFO] Finished at: 2016-01-15T00:35:37+01:00
[INFO] Final Memory: 34M/168M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.5.Final:deploy (default-cli) on project customer-portal-example: Could not execute goal deploy on /home/user/keycloak-demo-1.8.0.CR1/examples/unconfigured-demo/customer-app/target/customer-portal.war. Reason: I/O Error could not execute operation '{
[ERROR] "operation" => "read-attribute",
[ERROR] "address" => [],
[ERROR] "name" => "launch-type"
[ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :customer-portal-example
How should I address this error?
I have a big issue with my Jenkins on Mac OS. So I installed Jenkins, made a simple class and converted to Maven, created a new job on Jenkins and specify the pom.xml location ( which Jenkins sees it ok ) but when I try to build my class I always get an error as Jenkins cannot write mojo status or something.This is my console output
Started by user anonymous
Building in workspace /Users/Shared/Jenkins/Home/workspace/Cocotest
Parsing POMs
[Simple2] $ /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java -cp /Users/Shared/Jenkins/Home/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.5.jar:/usr/local/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/usr/local/apache-maven-3.3.9/conf/logging jenkins.maven3.agent.Maven31Main /usr/local/apache-maven-3.3.9 /Users/Shared/Jenkins/Home/war/WEB-INF/lib/remoting-2.53.2.jar /Users/Shared/Jenkins/Home/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.5.jar /Users/Shared/Jenkins/Home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.5.jar 51372
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /Users/alex-macbook/Eclipse workspace/Simple2/pom.xml install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Simple2 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # Simple2 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/alex-macbook/Eclipse workspace/Simple2/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # Simple2 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.396 s
[INFO] Finished at: 2015-12-29T20:46:31+01:00
[INFO] Final Memory: 12M/144M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Simple2: Error while storing the mojo status: /Users/alex-macbook/Eclipse workspace/Simple2/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst (Permission denied) -> [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
[JENKINS] Archiving /Users/alex-macbook/Eclipse workspace/Simple2/pom.xml to simple/Simple2/0.0.1-SNAPSHOT/Simple2-0.0.1-SNAPSHOT.pom
/Users/alex-macbook/Eclipse workspace/Simple2/pom.xml is not inside /Users/Shared/Jenkins/Home/workspace/Cocotest/Users/alex-macbook/Eclipse workspace/Simple2/; will archive in a separate pass
channel stopped
Finished: FAILURE
Regarding this error message:
Error while storing the mojo status:
/Users/alex-macbook/Eclipse workspace/Simple2/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst (Permission denied)
I think it's more a permission problem.
Jenkins is running with a dedicated jenkins user.
Did you check this user has a R/W access in your working directory?