开发者

Eclipse 3.7, m2eclipse & losing artifacts after changing pom.xml

I have a bit of a problem with Eclipse and Maven for a few months. After changing the pom.xml, Eclipse is losing all artifacts and getting this exception in my Maven console:

Missing artifact commons-logging:commons-logging:jar:1.1:compile

Eclipse doesn't find any artifacts. My workaround is to close Eclipse, run mvn clean install on the c开发者_JS百科ommand line and start Eclipse. This workaround works without any problems, but is not really the right way. How can I fix this issue?

I'm running Eclipse 3.7 and the newest m2eclipse(-extra), Windows 7 64bit with JDK 1.6.0.24.


I assume it builds ok when Maven is explicitly run - yes?
Have you tried right-clicking on the project and selecting

Maven..Update Project Configuration 

and

Maven..Update Dependencies?  

If not, that's likely to solve your problem.


Are you also running

mvn eclipse:eclipse

I had a similar issue and I ran that, the refreshed the project in eclipse and everything worked fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜