Jun 23, 2014

Strange maven-compiler-plugin Error when importing project

This problem cost me about 3 hours and finally I found a solution.

Let me describe the background. I have got a new laptop and want to set up a development environment: for eclipse I copied from my old machine and when I wanted to import a maven project, a strange problem happened:

Now it is fixed so the screenshot below looks good, but at that time, it was saying: maven-compiler-plugin 2.5.1 missing ...

I continue with the errors, but the project crashed no matter how I add dependencies.


I have tried to re-install eclipse, install maven, use different java version, use other versions of maven-compiler-plugin... None of them worked.

Here is the ultimate solution:
Delete the local repository settings by deleting the repository folder in .m2 (C:\Users\yourid\.m2\repository)


After restart eclipse and re-import the maven project, it is all solved.

Happy using new computer!

If you find this blog is useful, please kindly click the ads on this page to help. Thank you very much.

1 comment:

Anonymous said...

Thank you ! Your post really saved my day !