You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Eclipse 2018-12 together with the latest version of the m2e code quality plugin.
There exists the problem, that the checkstyle config seems not properly read from the maven pom.xml and saved as .checkstyle file in the project. The latter file simply isn't created.
m2e code quality plugin version is: 1.1.3.201903061028-r
Eclipse checkstyle plugin version is: 8.12.0.201808161509
maven-checkstyle-plugin version is: 3.0.0 together with checkstyle 8.11
The configs for PMD and Findbugs just seem to work fine. .pmd and friends get created.
Executing mvn also performs checkstyle checks as expected.
I don't think it actually has to create a .checkstyle file... it just
dynamically configures the Checkstyle Eclipse plug-in on the fly, I think
(but I am not 100% sure). You could always have a look at the source code
here in this project to better understand how it works...
To put it simply: it just doesn't work :D. That the .checkstyle isn't created, is just something I encountered. Because in the past it was there and checkstyle was working (Eclipse Oxygen/Mars etc.).
Is there any log where any problems are reported to?
I was having a similar issue (and no messages on the Errors logs) and then realized that I had forgotten to include the "check" goal in my pom.
A further suggestion in case it's not that simple, is to try by:
Thank you very much for the insights! I will investigate with the steps you suggested. And funnily: we also have the boot parent pom. Maybe it's really related to that, thanks!
@vghero apologies for deleting my previous post, I will now post it back:
what I described above worked with the pom in checkstyle-9 example but when I applied it to my real project it didn't work anymore so I decided to do more investigation.
I pulled all components of my project one by one and eventually m2e-quality-tools seems not to be working when the spring-boot parent pom is included, probably there is some compatibility problem.
is definitely interfering with the m2e-quality-tools plugin, I tried by put/pull it various times in a small project I had created on purpose.
I have found a workaround which I hope may be useful:
in my regular spring-boot project I pulled the parent header (even if that arises compiling issues)
I made sure checkstyle was not active for the project and removed the .checkstyle file
I run the "update maven project" (I think this may not be indispensable)
then checkstyle looked well configured in eclipse too.
Now what I mean to do is, to push the .checkstyle eclipse config file on git too, as it may be hard to follow that process all the time for all devs, and I will just do it myself when I feel that the configuration may need an update.
Activity
vorburger commentedon Mar 9, 2019
vghero commentedon Mar 11, 2019
To put it simply: it just doesn't work :D. That the
.checkstyleisn't created, is just something I encountered. Because in the past it was there and checkstyle was working (Eclipse Oxygen/Mars etc.).Is there any log where any problems are reported to?
vorburger commentedon Mar 11, 2019
andreasaba68 commentedon Apr 16, 2019
Hi @vghero
I was having a similar issue (and no messages on the Errors logs) and then realized that I had forgotten to include the "check" goal in my pom.
A further suggestion in case it's not that simple, is to try by:
I was doing the same when I realized my mistake.
I hope this helps.
vghero commentedon Apr 17, 2019
Thank you very much for the insights! I will investigate with the steps you suggested. And funnily: we also have the boot parent pom. Maybe it's really related to that, thanks!
andreasaba68 commentedon Apr 17, 2019
@vghero apologies for deleting my previous post, I will now post it back:
======
... and add something:
is definitely interfering with the m2e-quality-tools plugin, I tried by put/pull it various times in a small project I had created on purpose.
I have found a workaround which I hope may be useful:
then checkstyle looked well configured in eclipse too.
Now what I mean to do is, to push the .checkstyle eclipse config file on git too, as it may be hard to follow that process all the time for all devs, and I will just do it myself when I feel that the configuration may need an update.
Hope this helps!
andreasaba68 commentedon Apr 17, 2019
Now if you also want to create a formatter ... well that wouldn't work unpainfully either so I proposed a workaround for that too: