Maven Errors - Few common Maven error and troubleshooting part 2


In this post i am going to talk about maven build troubleshooting, Here is the list few maven error and its troubleshooting. 
This is the part 2 of the Troubleshooting tips.


concurrent.ExecutionException

If you see following type of error in your release build.
[ERROR] java.util.concurrent.ExecutionException: java.lang.NullPointerException  [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.

Solution

Your build job is having parellel execution, Please contact Release team to "-T -1C" get removed from the job.



Docker image building failed due to Unable to locate package

If you see following type of error in non java projects release build.
[INFO] [91mE: Unable to locate package  
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.2:prepare (default-cli) on project : Maven execution failed, exit code: '1' -> [Help 1]

Solution

It is happening because in your docker file you are trying to install packages without running "apt-get update"
Add following command in your Dockerfile before installing anything and after pulling the base image.
apt-get update







Comments

Popular posts from this blog

Colour formatting - Jenkins Console

Manage Docker images on local disk

Setup Docker slaves for Jenkins