"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 in Jenkins by Anirudh
1,340 views

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 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 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.

$workspace/pom.xml

answered Aug 1 by Sirajul
• 40,980 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,870 points
5,103 views
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
64 views
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,240 points
56 views
+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
9,007 views
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 in Jenkins by Charles Wu
1,300 views
+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,380 points
242 views
0 votes
1 answer