多模块项目管理在Java Maven中。

huangapple go评论63阅读模式
英文:

multi modules project management in java maven

问题

在一个多模块项目中,每个模块都由不同的团队创建,但每个模块对于项目的正常运行都很重要。
每个团队应该有其自己的模块代码,而其他模块应该以JAR包的形式出现。
即使通过Git进行工作,他们也不需要看到不属于他们的模块代码的修改。
但是为了对整个团队进行项目测试,所有的模块都需要一起使用。
我可以通过Maven进行多模块项目,但是当我将其放在Git上时,是否必须将每个模块放在单独的仓库中呢?
在模块版本更新中,他们将如何找出新版本中包含了哪些其他模块呢?

英文:

Let’s say in a multi-module project, each module is created by different teams, but each module is important for the project to work.
Each team should have its own module code, while other modules should appear in jar form.
Even when working through this git, they don’t have to see modifications in module codes that don’t belong to them.
But to test the project on the whole team, all the modules need to be used together.
I can do a multi-module project through maven, but when I put it on git, do I have to put each module in a separate repository?
how to they will find out what other module is in the new version in the version update of the modules?

答案1

得分: 1

你需要决定:

这些模块是否总是需要一起构建和测试?

如果是:将它们放入一个 Git 代码仓库,并使用多模块结构。每个人都会检出所有内容,但只为自己的模块进行更改。

如果不是:将项目分成两个或更多的多模块项目,并放入单独的 Git 代码仓库中。

英文:

You need to decide:

Will these modules always be built and tested together?

If yes: Put them into one git repository and use a multi-module structure. Everyone will checkout everything, but make changes only for their module.

If no: Separate the project in two or more multi-module projects in separate git repositories.

huangapple
  • 本文由 发表于 2020年9月17日 15:09:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/63932952.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定