“启用嵌套模块”发生了什么m2-eclipse中的选项? [英] What happened to the "Enable Nested Modules" option in m2-eclipse?

查看:101
本文介绍了“启用嵌套模块”发生了什么m2-eclipse中的选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我致力于实施一些使用组织成多个子模块的Maven2构建系统的开源项目。我也是Eclipse用户了好几年了。有了这些项目,我历来利用了maven-eclipse插件,以便Eclipse可以正确地识别我的项目中的库依赖。



以前是 - 当我设置了一个新的工作区或项目 - 我必须右键单击启用依赖关系管理,然后右键单击启用嵌套模块。一旦我做了这些事情,maven& eclipse会在我的.m2本地回购中找到相关的库。



但是在我最近安装的Eclipse / m2-eclipse - Eclipse Build 20100218-1602中,m2- eclipse 0.10.0.20100209-0800(对不起,关于对话框没有提供任何更好的) - 缺少启用嵌套模块选项。项目似乎还没有找到我的嵌套模块。



经过多次挖掘和一些试用&错误,我让IDE通过设置来识别我的子模块...

  includeModules = true 

手动在我的 org.maven.ide.eclipse.pref 文件中。



但我的问题是:什么给了?为什么这个选项消失?有没有更新的,更好的方式,我应该使用m2-eclipse来查找嵌套模块?其他Maven& Eclipse用户处理这个问题?

解决方案

这里的东西是启用嵌套模块的选项被移动到Window> Preferences> Maven的。将支持多个Maven模块映射到单个Eclipse Workspace项目复选框,右键单击项目,导航到Maven菜单项,您可以找到启用嵌套模块选项。


I contribute to and implement some open source projects that use a Maven2 build system organized into several sub-modules. I've also been an Eclipse user for several years. With these projects, I have historically leveraged the maven-eclipse plugin so that Eclipse can correctly recognise library dependencies in my project.

It used to be the case that -- when I set up a new workspace or project -- I would have to right-click select "Enable Dependency Management" followed by right-click "Enable Nested Modules." Once I did these things, maven & eclipse would find dependent libraries properly in my .m2 local repo.

But in my most recent install of Eclipse/m2-eclipse -- Eclipse Build 20100218-1602, m2-eclipse 0.10.0.20100209-0800 (sorry, the "About" dialog doesn't provide anything better than that) -- the "Enable Nested Modules" option is missing. Nor does the project seem willing to find my nested modules without it.

After much digging and some trial & error, I got the IDE to recognize my sub-modules by setting...

includeModules=true

In my org.maven.ide.eclipse.pref file manually.

But my question is: what gives? Why did this option disappear? Is there some newer, better way that I should be using m2-eclipse to find nested modules? How are other Maven & Eclipse users dealing with this issue?

解决方案

The thing here is the option to enable nested modules was moved to the Window >Preferences > Maven. Set the Support multiple Maven modules mapped to single Eclipse Workspace project checkbox, right click your project, navigate to Maven menu item you can find the 'Enable nested modules' option.

这篇关于“启用嵌套模块”发生了什么m2-eclipse中的选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆