0

can someone help me to understand why I am supposed to add POM.XML file when I am trying to archive the artifacts in a Jenkins freestyle project? let me know if I'm missing something or if my understanding is wrong.

Is this only way to approach to archive the artifacts for a freestyle project. If Yes, please explain why? If no, please guide me through the alternate process.

for an additional and clear picture of what I am talking about referring to the screenshot provided below:

enter image description here

NOTE: Error screenshot informing me that POM.XML file is missing

Rarblack
  • 4,559
  • 4
  • 22
  • 33
  • are you sure it is failing in archiving ? because from the logs it seems that `mvn package` is failing which is maven package build step – Reddysekhar Gaduputi Oct 26 '18 at 05:30
  • I believe the reason why the mvn package is failing to compile, is because it is unable to find the pom.xml reference in the build information. I know that for sure because, I haven't added the links to that file in that build. And why I did not: because this is a freestyle project... All I want to know is : is it mandatory to add a pom.xml file while building a free style java project. – Veluri Navyasree Oct 26 '18 at 07:59
  • yes it is mandatory to provide pom.xml while building a project. – Reddysekhar Gaduputi Oct 26 '18 at 09:10
  • thanks for the clarification. Appreciate it. – Veluri Navyasree Oct 27 '18 at 22:49

0 Answers0