Add maven plugin setting to specify which java will be used for compilation, and add release.