您的位置:首页 > 编程语言 > Java开发

Eclipse: Resolve Workspace projects

2015-09-01 22:21 1361 查看

When Import Maven project:

"Java Build Path" > "Libraries" 中的 component 显示的是引用 jar, 而不是引用本 workspace. 此时就要勾选 "Resolve Workspace projects".

 

Resolve Workspace projects:

Dependencies opened as workspace projects will be resolved without having to install them to your local Maven repository first. This way, any changes made to one of these dependencies will have an immediate effect on other projects consuming it (compilation, refactoring, etc.).

 

When Resolve Workspace projects is disabled, dependencies existing in the workspace must be installed to your local Maven repository after any change (by running mvn install), in order to see effects in projects consuming them.

 

 

Window->Show view->Other...->Mave Repositories

Right-click "Workspace projects", and select "Rebuild index", and then "clean all projects", and Maven "update project" again. then problem solved. actually not sure whether solved by this.

阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: