I've been using Eclipse for a while and have had a working Maven integration for about the same time. Up until recently all of my work had been using JDK 1.7. Whenever I ran Maven Builds on my Eclipse projects they ran fine.
I've now had JDK 1.8.0_77 installed (I work for a company who restrict installation rights and as a consequence I'm not free to just install new JDK versions whenever or wherever I want). I've added this new JDK as the Workspace Default in Eclipse. I've confirmed that this is the JDK that I've installed and not the JRE.
The problem I have now is that whenever I run a Maven Build (clean install in my case) on any project that uses JDK 1.8.0_77 as the JRE System Library I receive the following error.
I've researched this and most of the solutions seem to say that deleting the local .m2 repository and rebuilding or updating the project will resolve the issue but I've tried this with no success. For some reason my instance of Eclipse seems to think that my installation of JDK1.8.0_77 is in fact a JRE.
To ensure that it's not a problem with my embedded Maven instance I switched the project's platform dependency back to JDK1.7.X and it installed fine.
Simon Ritchie wrote:It seems the issue isn't just restricted to my IDE. I've tried running a mvn clean install from the command prompt and I get the same error. I'll open a question in the Maven forum, if that's okay?
As a mod, I can add the same thread to be linked from multiple forums so did that for you.
The issue seems to be with a corrupt installation of JDK1.8.0_77 (as helpfully pointed out here) so the problem isn't just localised to my instance of Eclipse. I'm on a work PC so I've had to request a new version of 1.8.0_77 to be installed.
(Sorry to open another topic but once I realised it wasn't just affecting Eclipse but my Maven and Java installs too I thought I should raise the question on the Maven forum here).