I am getting this error
The command line is too long. mvn install Standard error from the DataNucleus tool org.datanucleus.enhancer.DataNucleusEnhancer
If you is using datanucleus-maven-plugin in windows simply set fork property as false in configuration of plugin as follow:
... org.datanucleus datanucleus-maven-plugin 3.3.0-release true false ...
See the datanucleus enhancer page for more datails.