Eclipse 和 SVN 中的 Maven Multimodul 项目

发布于 2024-12-12 03:41:29 字数 392 浏览 1 评论 0原文

我有一个现有项目 MainProject。我想将其转换为多模块项目。在 Eclipse 中,我创建了一个父模块,它只是一个 pom 模块和另一个模块 Modul_1。

然后我将 MainProject 移动到父文件目录中。 (实际上我不想移动到父文件夹中。不幸的是,为了使 Main_project 找到父模块成为可能,我必须这样做)

工作正常.. 看起来像:

-->ParentModule
------>Mainproject
------>Modul_1

Modul_1只在jenkins中需要。这意味着程序员应该只关心 MainProject。

我应该如何在SVN中签入项目?使用相同的文件结构还是可以在 SVN 中独立签入?

I have an existing project, MainProject. I want to convert it to a multimodule project. In Eclipse I created a parent modul, which is just a pom modul and another modul, Modul_1.

Then I moved my MainProject in parent file directory. (Actually i did not want to move in parent folder. unfortunately to make it possible that Main_project finds the parent modul, i must do that)

Works fine..
It looks like:

-->ParentModule
------>Mainproject
------>Modul_1

Modul_1 is only needed in jenkins. It means the programmers should only care about MainProject.

How should I check in the project in SVN? With the same file structure or can i check in independently in SVN?

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

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

发布评论

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

评论(1

爱你不解释 2024-12-19 03:41:29

如果主项目没有引用ParentModule,你可以这样布局:

-->ParentModule
-->MainProject
-->Modul_1

在parentmodule的pom.xml中:

<modules>
  <module>../MainProject</module>
  <module>../Modul_1</module>
</modules>

对于jekins,有两种配置作业的方法:

  1. 签出父文件夹并将pom的位置指向ParentModule/pom.xml
  2. checkout 3 svn 3 个项目的每个文件夹的位置并将 pom 指向

eclipse 的 ParentModule/pom.xml ,您只能签出 MainProject。

if the mainproject doesn't refer to ParentModule, you could layout it like this :

-->ParentModule
-->MainProject
-->Modul_1

in parentmodule's pom.xml :

<modules>
  <module>../MainProject</module>
  <module>../Modul_1</module>
</modules>

for jekins, there are 2 ways to configure job :

  1. checkout parent folder and point pom's location to ParentModule/pom.xml
  2. checkout 3 svn locations to each folder for 3 projects and point pom to ParentModule/pom.xml

for eclipse , you can checkout only MainProject.

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