Eclipse 3.7、m2eclipse &更改 pom.xml 后丢失工件
我几个月来 Eclipse 和 Maven 遇到了一些问题。更改 pom.xml
后,Eclipse 将丢失所有工件,并在我的 Maven 控制台中出现此异常:
Missing artifact commons-logging:commons-logging:jar:1.1:compile
Eclipse 未找到任何工件。我的解决方法是关闭 Eclipse,在命令行上运行 mvn clean install 并启动 Eclipse。这种解决方法没有任何问题,但并不是真正正确的方法。我该如何解决这个问题?
我正在运行 Eclipse 3.7 和最新的 m2eclipse(-extra)、Windows 7 64 位和 JDK 1.6.0.24。
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 command 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为当 Maven 显式运行时它构建正常 - 是吗?
您是否尝试过右键单击该项目并选择
“
如果没有,这可能会解决您的问题”。
I assume it builds ok when Maven is explicitly run - yes?
Have you tried right-clicking on the project and selecting
and
If not, that's likely to solve your problem.
你是否也在运行
我有一个类似的问题,我运行了它,在 Eclipse 中刷新了项目,一切工作正常。
Are you also running
I had a similar issue and I ran that, the refreshed the project in eclipse and everything worked fine.