-
Notifications
You must be signed in to change notification settings - Fork 7
Plugin Causes Project Java Version Configuration Issues #43
Comments
In theory, plugin should be reading version from pom I just looked at feign/pom.xml and the 2 properties the plugin read seem to be there... Could would attach eclipse Also, could you try this
I used eclipse 4.8 here and don't see the issue you mentioned while building feign. |
I don't see anything about the formatter in the error logs as viewed from Window->Show View->General->Error log. Tried with this configuration:
But it didn't make any difference. I also tried with Eclipse OXYGEN (4.X) and it wasn't different. I was using Eclipse-STS as stated. Having a plugin change settings in Eclipse seems like a case of the child telling the parent what to do. Seems like a really bad idea. |
Really, then I would suggest disabling maven nature, as all it does it tell eclipse what to do. |
Doesn't change the unless you do an Update Project, otherwise it executes maven. A formatter plugin seems like it should be formatting the code not messing with Eclipse settings. |
It does both. The major goal of the plugin is prevent this mess from happening again |
Works for me. I'm not arguing per-se about the philosophy of the plugin but I felt the need to add my $.02 worth. |
Environment: Eclipse-STS 3.9.4 (Eclipse Neon.3 (4.6.3)). Windows-10. Java 1.8.0_161.
Add the plugin to the feign parent project's pom. Use STS->Maven->Update Project and select the parent project and all module projects. Select project properties->Java Compiler for a module project and it will show Enable project specific settings enabled when it shouldn't be and no project specific settings will persist. It will show the warning "When selecting 9 compliance, make sure to have a compatible JRE installation activated (currently 1.8). Configure the "Installed JRE's" and "Execution Environments," or change the JRE on the "Java Build Path".
Immediately there will be no compile errors but opening a source file will show errors for JRE less than 1.5.
When you do project->clean (with compile automatically enabled) then all the sources will show errors related to JRE less than 1.5.
No changing of any global properties or project properties will solve the problems because every time you "clean" or whatever all the settings will revert to the problem conditions, or not be saved, or whatever.
The text was updated successfully, but these errors were encountered: