Jenkins Non-readable POM Jenkins Non-readable POM jenkins jenkins

Jenkins Non-readable POM


I had exact same problem - local maven build works and Jenkins fails with the same error as yours.

Once Jenkins job is started, it will import source code to /your-jenkins/workspace/your-job-name folder and then start building. In your DSL, you have to mention the path to your pom in the workspace.

Take a look at the Jenkins workspace view to see where your pom is located once the source code is downloaded. This will aid in resolving the problem.

enter image description here


in the -f option you have provided. the maven is unable to identify the pom to read

-f /Users/amhg/Documents/dev/intellik2/junitexample test

try giving in the complete name of the pom including .xml

-f /Users/amhg/Documents/dev/intellik2/junitexample nameofpom.xml


Please check what you have in your Jenkins Build -> Goals and in your Build -> POM.You probably switched those two.