Maven在Eclipse问题中的多模块项目 [英] Maven Multiple module project in Eclipse issue

查看:158
本文介绍了Maven在Eclipse问题中的多模块项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



mvn eclipse:eclipse



它显示子模块如下。





问题是无法识别任何子模块的java文件。如果悬停对象不显示任何东西,并将其视为纯文本文件。它抱怨它不在构建路径中?



任何想法如何修复或如何导入多重模块maven项目在eclipse。



解决方案

Maven支持包含在Eclipse Kepler中。您可以在文件 - >导入屏幕中找到它作为Maven - >现有的Maven项目。





选择一个带有父POM的目录将提示您导入其所有子项。 p>


I have multiple module maven project which i imported in eclipse.

mvn eclipse:eclipse

and it shows child modules as following.

problem is it is not recognizing any of the child modules java files. if hover objects it does not show up any thing and consider as plain text files. it complains that it is not in build path ???

any idea how to fix or how to import multip modules maven project in eclipse.

解决方案

Maven support is included in Eclipse Kepler. You can find it in the File -> Import screen as Maven -> Existing Maven Projects.

Selecting a directory with a parent POM in it will prompt you to import all its children as well.

这篇关于Maven在Eclipse问题中的多模块项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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