在 Eclipse 中拥有 Maven 父项目以实现平面项目布局

发布于 2024-10-08 18:32:02 字数 456 浏览 0 评论 0原文

我正在尝试“mavenize”现有的 EAR 应用程序。

我已阅读 创建多模块的指南使用 WTP 进行模块项目并创建了“平面项目布局”。

我的问题是,当输入命令 mvn eclipse:eclipse 时,我已经为 Ear、ejb 和 war 项目创建了 .projects、.classpath 和 .settings,但没有为父项目创建,这是一个pom

你知道该怎么做吗?

实际上,目标是直接从 Eclipse 向 SCM (SVN) 提交所有更改,这就是为什么我必须在处理的项目中包含父项目。

I'm trying to "mavenize" an existing EAR application.

I've read the guidelines to create a multi-module project with WTP and created a "flat project layout".

My problem is that when typing the command mvn eclipse:eclipse, I've got the .projects, .classpath and .settings created for the ear, ejb and war projects, but not for parent project, which is a <packaging>pom</packaging>.

Do you know how to do this ?

Actually, the goal is to commit to the SCM (SVN) all the changes directly from Eclipse, that's why I must have the parent-project in the handled projects.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

追我者格杀勿论 2024-10-15 18:32:03

我最终做的是在我的 project-parent 目录中创建一个简单的 .project :

<projectDescription>
  <name>project-parent</name>
</projectDescription>

Eclipse 可以识别它,并且它不依赖于系统,这正是我最终想要的。

What I finally did is to create a simple .project in my project-parent dir :

<projectDescription>
  <name>project-parent</name>
</projectDescription>

Eclipse recognizes it and it is not system dependent, what I finally wanted.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文