We have an internal dependent jar which generates the model classes from XSD. While building the Jar through Jenkins, the default serialVersionUID (private static final long serialVersionUID = 1L;
) is not getting generated in any of the generated JAVA classes, however the same is getting generated when compiling the jar manually through Maven. Because of this we are getting below exception at runtime:
local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = -3648203929803272796 (java.io.InvalidClassException)
Versions as below:
Kindly suggest the root cause and resolution for same.