m2Eclipse 插件:“解决工作区工件"有什么作用? [英] m2Eclipse plugin: What does 'Resolve Workspace Artifacts' do?
问题描述
很抱歉,如果我问的是一个可能无关紧要的问题,但我很难找出Resolve Workspace Artifacts 在 Eclipse IDE 的 Maven 构建窗口中究竟做了什么,使用M2Eclipse 插件.我指的是:
I'm sorry if I am asking a possibly-trivial question, but I am having so much trouble finding out exactly what Resolve Workspace Artifacts does in the Maven build window in the Eclipse IDE, using the M2Eclipse plugin. I'm referring to this:
有人知道吗?我尝试了 google-ing 和 stackoverflow-ing 的解决方案;有很多错误请求/报告,但没有对此选项的明确描述.感谢您的帮助.
Does anyone have any idea? I tried google-ing and stackoverflow-ing the solution; there are lots of bug requests/reports but no clear-cut descriptions of this option. Thanks for the help.
推荐答案
假设您的工作区中有两个或多个项目,例如project1
、project2
等等.如果project1
依赖project2
和project3
,你只需要定义project1
对的依赖project2
和 project3
.
Assume you have two or more projects in your workspace e.g. project1
, project2
and so on. If project1
is dependent on project2
and project3
, you just need to define the dependency of project1
on project2
and project3
.
通过启用Resolve Workspace Artifacts
,m2Eclipse
将自动构建project2
和 的
并添加到 SNAPSHOT JAR
>project3project1
的类路径中.
By enabling Resolve Workspace Artifacts
, m2Eclipse
will auto-build the SNAPSHOT JAR
of project2
and project3
and add in the classpath of project1
.
换句话说,它解决了与工作区项目的依赖关系.
这篇关于m2Eclipse 插件:“解决工作区工件"有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!