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
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
I'm attempting to run the sample project from How to setup akka persistence project : https://developer.lightbend.com/start/?group=akka&project=akka-samples-persistence-dc-java
When I try to run the example using the command :
mvn exec:java -Dexec.mainClass="sample.persistence.multidc.ThumbsUpApp" -Dexec.args="cassandra"
I receive the error:
[INFO] --< com.lightbend.akka.samples:akka-sample-replicated-event-sourcing-java >--
[INFO] Building Akka replicated event sourcing multi dc sample 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) # akka-sample-replicated-event-sourcing-java ---
[WARNING]
java.lang.ClassNotFoundException: sample.persistence.multidc.ThumbsUpApp
at java.net.URLClassLoader.findClass (URLClassLoader.java:471)
at java.lang.ClassLoader.loadClass (ClassLoader.java:589)
at java.lang.ClassLoader.loadClass (ClassLoader.java:522)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246)
at java.lang.Thread.run (Thread.java:834)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.426 s
[INFO] Finished at: 2021-07-25T20:52:54+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project akka-sample-replicated-event-sourcing-java: An exception occured while executing the Java class. sample.persistence.multidc.ThumbsUpApp -> [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
Looking at the project source:
The package sample.persistence.multidc.ThumbsUpApp does not appear to exist. How to include the missing package sample.persistence.multidc.ThumbsUpApp ? Shouldn't this project execute without adding additional src code ?
It seems you are referencing a class name that doesn't exist in the project source.
You may use the following command instead.
mvn exec:java -Dexec.mainClass="sample.persistence.res.MainApp" -Dexec.args="cassandra"
Trying to run a program with maven and keep getting this error any ideas on how to fix? ps- I'm a complete newbie with maven/tomcat/springframework etc
ebitnami#ubuntu:~$ cd OpenESPI-Common-java/
bitnami#ubuntu:~/OpenESPI-Common-java$ mvn -Dmaven.test.skip=true clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Common 1.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.809s
[INFO] Finished at: Wed Jun 17 16:21:44 EDT 2020
[INFO] Final Memory: 6M/59M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not
be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-
plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5
from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-
plugin-2.5.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [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/PluginResolutionException
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
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?