문제

I have eclipse 4.10, with m2eclipse plugin. I can build my project perfectly using Maven, either through command line or through [right click] -> run -> maven install.

But annoyingly, eclipse still complains that some files have compilation errors. They seem to refer to different versions from desired. This makes me worried that if I run my program from command line, I might not be running the build I desire.

How do I solve this problem? Thank you!

[UPDATE: Thanks for the reply, but Project->clean and [right click]->run->maven clean don't work either...

도움이 되었습니까?

해결책

Running mvn clean eclipse:eclipse solved the problem! Thanks guys!

다른 팁

Do a right click on your project then maven->update project will work for you

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top