As part of Spring boot 3.2 migration and Java 21 upgrade, I migrated to eclipselink 4.0.2 and the eclipse-link-plugin to 3.0.2.
But after the upgrade facing the below issue:
Failed to execute goal com.ethlo.persistence.tools:eclipselink-maven-plugin:3.0.2:weave (default) on project :
Exception [EclipseLink-28018] (Eclipse Persistence Services - 4.0.2.v202306161219): org.eclipse.persistence.exceptions.EntityManagerSetupException
[ERROR] Exception Description: Predeployment of PersistenceUnit failed.
[ERROR] Internal Exception: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "genericTypes" is null
I have configured the plugin a follows:
com.ethlo.persistence.tools
eclipselink-maven-plugin
${eclipselink-maven-plugin.version}
process-classes
weave
Is there some compatibility issue with among the above version, how can we resolve it