ADD failed while integrating docker with jenkins - java

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?

Related

Netbeans 8.0.2 fail to run a simple hello world program

Showing an error of the sorts
Plugin org.codehaus.mojo:exec-maven-plugin:1.2.1 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.codehaus.mojo:exec-maven-plugin:jar:1.2.1:
Could not transfer artifact org.codehaus.mojo:exec-maven-plugin:pom:1.2.1 from/to central (http://repo.maven.apache.org/maven2):
Failed to transfer file:
http://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2.1/exec-maven-plugin-1.2.1.pom. Return code is: 501 , ReasonPhrase:Not Implemented. -> [Help 1]
This might be an issue with resolving the dependency. Can you try below and get back.
Open the .m2/repository and proceed to the path org/codehaus/mojo/exec-maven-plugin/. Then delete the subdirectory 1.2.1 and the entire content. Then the maven will automatically download the dependency in the next update. Try to build the project and see.
Additionally you can try to issue below command in command prompt at the project directory.(This command will update the dependencies forcefully)
mvn clean install -U

Jenkins build failure : Failed to create /var/lib/tomcat8/.m2

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?

Maven: Failed to execute goal heroku:deploy-war

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

Jenkins, Gradle, clean works but compileJava fails (Permission Denied)

I am new to Jenkins and I would like to use it for my gradle project. I downloaded the gradle plugins for Jenkins, but when i try to build my app, I got
Building in workspace /home/alexi/Documents/workspace/testJenkins
[Gradle] - Launching build.
[testJenkins] $ /home/alexi/Documents/workspace/testJenkins/gradlew clean build test
:clean UP-TO-DATE
:compileJava
FAILURE: Build failed with an exception.
* What went wrong:
java.io.FileNotFoundException: /home/alexi/Documents/workspace/testJenkins/.gradle/2.13/taskArtifacts/cache.properties.lock (Permission denied)
> /home/alexi/Documents/workspace/testJenkins/.gradle/2.13/taskArtifacts/cache.properties.lock (Permission denied)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.147 secs
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Finished: FAILURE
I have tried to put chmod 777 to the .gradle directory, but I still got this error.
In my build steps, I have a new gradle step where I use the Gradle Wrapper and then make gradlew executable, I also check the field From Root Build Script Dir. The tasks I am executing are clean build test
Also, when I run those commands in Spring Tools SUite /Eclipse, it works perfectly, my Jenkins is on localhost
The solution was to remove the .gradle file already existing in my project (created with Spring Boot)

Failed to execute goal com.atlassian.maven.plugins:maven-amps-dispatcher-plugin

I try to set up helloworld plugin for jira and get the exception:
Failed to execute goal com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:4.0:run (default-cli) on project helloworld: Unable to execute mojo: UnsupportedOperationException.....
My Environements:
JIRA - sdk-installer-4.0
java 1.6_0.32
maven 3.0.5(copy conf folder from sdk-installer-4.0 and paste into maven 3.0.5)
I clean .m2 local repository
Turn off Windows Defende
Try to set up project use this commands
atlas-clean
atlas-mvn eclipse:eclipse
atlas-compile
atlas-debug
But not result.
Have you any idea?
Thanks a lot

Categories