I am currently trying to setup jenkins build for my maven project. I have completed all the required configurations. But when trying to build the project it says ERROR: Failed to create /var/lib/tomcat8/.m2 where var/lib/tomcat8 is my tomcat's home directory. Can someone please help me on this error?
Related
ADD target/maven-dev.jar maven dev.jar
ADD failed: file not found in build context or excluded by .dockerignore: stat target/maven-dev.jar: file does not exist
Build step 'Docker Build and Publish' marked build as failure
Finished: FAILURE
integrating docker with Jenkins.
how to solve this?
I'm trying to setup the sample app to load 100 docs in MarkLogic server using the spring batch git documentation but I get this error everytime I try to run my job:
*** What went wrong:
Execution failed for task ':runYourJob'.
> Could not resolve all files for configuration ':testRuntimeClasspath'.
> Could not download marklogic-xcc.jar (com.marklogic:marklogic-xcc:9.0.2)
> Could not get resource 'https://jcenter.bintray.com/com/marklogic/marklogic-xcc/9.0.2/marklogic-xcc-9.0.2.jar'.
> Could not GET 'https://repo.jfrog.org/artifactory/libs-release-bintray/com/marklogic/marklogic-xcc/9.0.2/marklogic-xcc-9.0.2.jar?referrer'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target**
The URL for the basic setup is here: https://github.com/marklogic-community/marklogic-spring-batch/wiki/Getting-Started
I'm using IntelliJ as the IDE & also tried to download & add the .jar to the classpath dependency. I'd appreciate any help here. I'm not sur if this could be a gradle issue.
EDIT: This error is common while building any marklogic gradle app & not specific to spring. I'm using MarkLogic 10 & gradle version 5.4.1 on adoptOpenJDK11 in a windows 10 machine.
Could not get resource 'https://jcenter.bintray.com/com/marklogic/marklogic-xcc/9.0.2/marklogic-xcc-9.0.2.jar'
The location https://jcenter.bintray.com/com/marklogic/marklogic-xcc/9.0.2/ does not contain the requested jar marklogic-xcc-9.0.2.jar. Make sure to point to a valid maven repository containing that jar.
The root cause of your error is that a dependency is missing in the build.gradle.
My Spring framework MVC version is:
MarkLogic Java API 5.3.0
JDK 11
Spring Framework 5.2.7
Spring Batch 4.2.4
If you clone the whole project and have not upgraded any dependencies:
Add line 24 in the core:build.gradle
Load gradle change in IntelliJ and clean deploy the project.
Upon the successful gradle build, an App server (in my case, App name is ml-spring-batch # 7010) is scaffolded:
In IntelliJ, execute gradle task against samples ONLY. In cmd, run task: gradle runYourJob. Upon the gradle task completion, 100 documents are loaded in the content database.
I imported my project and when did a maven clean build was successful, but when maven install is done this Build Failure occurs.
I have my maven in C\maven\maven 3.6 and I have given the settings and repo location of that location to this project.
My Env variables are correctly set up with reference to Java and Maven as well. Please help me on this to get it solved.
it may be because of the proxy ! Check you proxy and test if it's working.
I am following this tutorial to create a sample project in IntelliJ Idea and deploy it in Heroku, but when I run the project
the Maven didn't built properly, giving me error:
Failed to execute goal com.heroku.sdk:heroku-maven-plugin:1.1.3:deploy-war (default-cli) on project helloworld: Failed to deploy application: Could not find app name: No 'heroku' remote found.
I solved it. The tutorial is missing one line. Before running this, we have to do
mvn clean install
I am new to Jenikns. Please help to resolve this.
Mine is a Maven project and it builds successfully in Eclipse. But when I am trying to build it through local host Jenkins (Source code from SVN), its throwing error -
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven plugin:1.4.0:java (default-cli) on project IPR: An exception occured while executing the Java class. com.IPR.runner.IPRRunner-e -> [Help 1]
where IPRRunner is part of my framework and the framework library is in my company central repo.