Maven 工作区解析 horked
我正在使用 m2eclipse 来管理 Maven 项目。不知何故,我做了一件坏事,现在系统的行为就像工作区分辨率被禁用一样。
我有几个依赖于主项目的项目。该项目的版本为 4.0-SNAPSHOT,所有依赖项目都在其 pom 的依赖项部分引用它。一切都工作正常,直到我创建了一个全新的项目并错误地将 pom 从主项目复制到新项目中。突然,所有依赖的项目都收到错误:
“容器‘Maven 依赖项’引用了不存在的库 C:\users\myusername.m2\com\mydomain\myproject\4.0-SNAPSHOT\myproject-4.0-SNAPSHOT.jar
我关闭了有问题的新项目,但所有依赖项目仍然存在错误。
我没有对主项目或任何依赖项目进行任何更改(据我所知),因此我猜测 Eclipse 环境中发生了某些更改。 m2eclipse 或 Maven 本身是否在我可以删除的任何地方维护设置?
I'm using m2eclipse to manage maven projects. Somehow I did a bad thing, and now the system is behaving as if workspace resolution is disabled.
I have several projects that depend on a main project. This project has a version of 4.0-SNAPSHOT, and all the dependent projects reference it in the dependencies section of their poms. Everything was working fine until I created an entirely new project and mistakenly copied the pom from the main project into the new project. Suddenly, all of the dependent projects got the error:
"The container 'Maven Dependencies" references non existing library C:\users\myusername.m2\com\mydomain\myproject\4.0-SNAPSHOT\myproject-4.0-SNAPSHOT.jar
I zapped the offending new project, but the error remains for all the dependent projects.
I've made no changes (to my knowledge) in the main project or any of the dependent projects, so I'm guessing something got changed in the Eclipse environment. Does m2eclipse or Maven itself maintain settings anywhere that I can blow away?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系。答案是右键单击项目并选择 Maven/更新快照。
Never mind. The answer is to right-click on a project and pick Maven/Update Snapshots.