Eclipse 和 SVN 中的 Maven Multimodul 项目
我有一个现有项目 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果主项目没有引用ParentModule,你可以这样布局:
在parentmodule的pom.xml中:
对于jekins,有两种配置作业的方法:
eclipse 的 ParentModule/pom.xml ,您只能签出 MainProject。
if the mainproject doesn't refer to ParentModule, you could layout it like this :
in parentmodule's pom.xml :
for jekins, there are 2 ways to configure job :
for eclipse , you can checkout only MainProject.