"No such file pom.xml" error in Jenkins

0 votes

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.

0 votes

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
• 45,590 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,900 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,510 points
0 votes
1 answer

sonar XML plugin installation failure in jenkins

You can try this link which SonarQube XML ...READ MORE

answered Jun 20, 2018 in Jenkins by Atul
• 10,250 points
+2 votes
3 answers

Permission denied error while running a simple job in Jenkins

Hey @Hannah, try changing the permissions using ...READ MORE

answered Oct 25, 2018 in Jenkins by krishti
0 votes
3 answers

Error: ‘Jenkins: Cannot define variable in pipeline stage’

https://stackoverflow.com/questions/39832862/jenkins-cannot-define-var ...READ MORE

answered Mar 13, 2019 in Jenkins by Charles Wu
+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