Maven fails to parse POMs at jenkins

前端 未结 5 1652
野性不改
野性不改 2020-12-20 11:46

I have this simple maven project, containing a few common test tools. It builds locally, but on jenkins I am getting this strange error (see below).

Other info:

相关标签:
5条回答
  • 2020-12-20 12:10

    We had this problem which was caused by a bug in the Jenkins Maven Plugin. Updating to a version above 2.15.1 solved it for us.

    0 讨论(0)
  • 2020-12-20 12:10

    Check in your Project configuration in Jenkins under

    Build -> Advanced... -> settings 
    

    here make everything default and you good to go

    0 讨论(0)
  • 2020-12-20 12:13

    I had the problem after I changed the build name and it included a space character. the 'execute shell' was using $WORKSPACE variable and that didn't work because of the space.

    0 讨论(0)
  • 2020-12-20 12:21

    Maven tries to read /root/.jenkins/workspace/testtools as its user settings file (normally under /root/.m2/settings.xml). Since this is a directory, it can't be read.

    Check in your Job configuration under Build -> Advanced... -> settings file You seem to have selected Settings in file system without any value. Change this to "Use default maven setting" and you are good.

    0 讨论(0)
  • 2020-12-20 12:26

    This error could be triggered if the fully qualified path name for pom.xml is not used in the project configuration e.g C:\Users\user1\workspace\WebdriverTest is a not fully qualified. This is one is: C:\Users\user1\workspace\WebdriverTest\pom.xml Take note of the \pom.xml

    0 讨论(0)
提交回复
热议问题