Fix Jenkins POM Freezer
“Wrong Relative POM” Error

Posted by in IT, Tutorial

If you get a build error in Jenkins like:

Then you have a POM freezing issue with the parent POM. I.e., the Jenkins plugin has failed to freeze the POM version from a 1.0-SNAPSHOT to an actual 1.0-6034-79. A cause can be the plugin expects a certain sequence of tags in the POM and doesn’t find it. In my case, the initial configuration was:

and the expected configuration would be something like

Note the sequence groupartifactIdversion.

HTH,


A little experiment: If you find this post and ad below useful, please check the ad out :-)