"No such file pom.xml" error in Jenkins

+1 vote

I am trying to execute a maven project and in my build I keep getting the error saying 

no such file 'POM.xml'
May 15, 2019 in Jenkins by Anirudh

3 answers to this question.

+1 vote

So once jenkins build starts it will download the source code to .jenkins/jobs/workspace and build it there. This will require you to mention the path of your application's POM.xml in relation with your jenkins workspace.

answered May 15, 2019 by Kumar
+1 vote
Can you please che ck the location of pom. Xml make sure its on the landing page of your repository, not inside a folder.
answered May 15, 2019 by Samir
What do you mean by the landing page of the repository?
0 votes
  • You can probably check this location if you are not sure of the pom path jenkins\jobs\yourjobname\workspace

  • Say for example, for an application called as Sample, pom would be at jenkins\jobs\jenkinsJobName\workspace\Sample\pom.xml

  • The root pom field should be Sample\pom.xml

  • If you have your pom.xml in your workspace then use below command in ROOT POM.


answered Aug 1, 2019 by Sirajul
• 48,770 points

Related Questions In Jenkins

0 votes
1 answer

Error: ‘Jenkins pipeline: No such DSL method'

This is a simple mistake, just remove ...READ MORE

answered Aug 17, 2018 in Jenkins by Sophie may
• 9,940 points
0 votes
2 answers
0 votes
1 answer

Is support XML Canon available in Jenkins?

Here is some information regarding your query ...READ MORE

answered Jun 1, 2018 in Jenkins by Damon Salvatore
• 5,520 points
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
0 votes
1 answer
0 votes
5 answers

How to resolve this error “Jenkins Host key verification failed”?

HI Mam, Please check the following solution:: 1. Switch ...READ MORE

answered May 3, 2019 in Jenkins by anonymous
+2 votes
5 answers