m2Eclipse插件:“解析工作空间工件”有什么作用?

时间:2022-04-02 20:48:11

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:

如果我问一个可能微不足道的问题,我很抱歉,但是我很难找到Resolve Workspace Artifacts在Eclipse IDE的Maven构建窗口中使用M2Eclipse插件做了什么。我是指这个:

m2Eclipse插件:“解析工作空间工件”有什么作用?

Does anyone have any idea? I tried google-ing and *-ing the solution; there are lots of bug requests/reports but no clear-cut descriptions of this option. Thanks for the help.

有人有什么主意吗?我尝试了google-ing和*-ing解决方案;有很多错误请求/报告,但没有明确的此选项说明。谢谢您的帮助。

1 个解决方案

#1


25  

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.

假设您的工作区中有两个或更多项目,例如project1,project2等。如果project1依赖于project2和project3,则只需要在project2和project3上定义project1的依赖关系。

By enabling Resolve Workspace Artifacts, m2Eclipse will auto-build the SNAPSHOT JAR of project2 and project3 and add in the classpath of project1.

通过启用Resolve Workspace Artifacts,m2Eclipse将自动构建project2和project3的SNAPSHOT JAR并添加到project1的类路径中。

In other words, it resolves the dependencies with workspace projects.

换句话说,它解析了工作区项目的依赖关系。

#1


25  

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.

假设您的工作区中有两个或更多项目,例如project1,project2等。如果project1依赖于project2和project3,则只需要在project2和project3上定义project1的依赖关系。

By enabling Resolve Workspace Artifacts, m2Eclipse will auto-build the SNAPSHOT JAR of project2 and project3 and add in the classpath of project1.

通过启用Resolve Workspace Artifacts,m2Eclipse将自动构建project2和project3的SNAPSHOT JAR并添加到project1的类路径中。

In other words, it resolves the dependencies with workspace projects.

换句话说,它解析了工作区项目的依赖关系。