I'm sorry to say that the situation is worse than I first found.
My opinion is that the code inside
org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations.java
is a piece of garbage.
The main offending method is readAvailableJREs.
If you only have one JDK/JRE configured for your Eclipse workspace (as I do), even if that JRE is
configured for both J2SE-1.5 and for J2SE-1.6 within Eclipse, then the code only picks up on one of
them (1.6 in my case) but leaves the 1.5 configuration defaulted to:
org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5
...which screws up my configuration when it is written into the .classpath
files...
The irony is that I think many other folks using this avoid this code as their Eclipse workspace
settings are such that the plugin code never finds their Eclipse workspace configuration data in
which case the JRE configuration is left as:
org.eclipse.jdt.launching.JRE_CONTAINER
...which leads to no problems!!
Yours, Mike.