巡航控制 - 父/子项目
我正在使用巡航控制来不断检查我的项目,到目前为止,除了一些小问题外,它似乎比连续体工作得更好。
如果我有一个项目依赖于其他几个项目,并且我更新了其中一个依赖项而不更新其版本号,因此不需要更改父 pom,则父项目将永远不会被重建。
这是可能的,还是我应该在每次更改后返回并继续增加 pom,然后根据需要在父级中进行相应的更改?
我希望这能自动完成(如果巡航控制有更紧密的 Maven 集成),这样我就会神奇地知道这个变化破坏了下游的某些东西。
我猜我的新格式可能是:
${date}.${buildNumber}
2009.12.18.1
谢谢, 瓦尔特
I am using cruise control to constantly check my projects and so far it appears to be working better than continuum except for some minor issues.
If I have a project that depends on several other projects and I update one of those dependencies without updating its version number thus requiring no change in the parent pom, the parent will never get rebuilt.
Is this possible, or should I just go back and keep incrementing the pom after each change then make the corresponding changes in the parents as needed?
I was hoping this would be done automatically (if cruise control had tighter maven integration), so that I would magically know this change broke something downstream.
I am guessing my new format will probably be:
${date}.${buildNumber}
2009.12.18.1
Thanks,
Walter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的项目在 Maven 中处于父子关系,则每次使用 install 目标时,构建父项目还应该使用新解析的依赖项构建其模块。
根据您的描述,听起来您没有带有模块的父项目,而是有一些相互依赖的独立项目。在这种情况下,我建议你做两件事:
If your projects are in a parent->child relationship in maven, building the parent should also the build its modules with the newly resolved dependencies everytime if you are using the install goal.
Based on your description, it sounds like you don't have a parent project with modules but instead of a handful of separate projects with dependencies between them. In this case, I would suggest you do two things
不幸的是,我对巡航控制了解不够,无法直接回答您的问题。
不过,我在 Hudson 方面获得了积极的体验。 Hudson 被广泛用作 CI 服务器,是免费的,并且具有出色的 Maven 集成,并且可以完美处理您所描述的内容。
Unfortunately I don't know enough about cruise control to directly answer your question.
However I have had positive experience with Hudson. Hudson is widely used as a CI server, is free, and has excellent Maven integration plus handles what you describe perfectly.