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:
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.
Check in your Project configuration in Jenkins under
Build -> Advanced... -> settings
here make everything default and you good to go
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.
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.
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