Release modules w. different version of multimodule maven project through jenkins

萝らか妹 提交于 2020-01-05 05:44:08

问题


I have setup a multimodule project with maven.

hierachie is - parent -- module 1 -- module 2 -- module n

I am wondering, how I can release just one single module of this project in Jenkins.

Would appreciate any comments.

Thank you


回答1:


No problem with that, go for the maven-release-plugin and release the modules of interest only.

You should start with the parent. Afterwards, go for the others (assuming inheritence is in place, and these are not submodules of parent). Moreover, as there might be dependencies between modules, make sure to follow the rule, that: there are no SNAPSHOT dependencies on the module you're about to release.

For deeper understanding, check the official docs of maven-release-plugin, or go for the link (that seems to summarize/detail steps on release, even the background things happening).

Steps to be done on each module are:

  • preparation for release
  • performing a release

Moreover, as you're interested in Jenkins release, you should go for: non-interactive release

Well, release plugin might be a pain to use properly/get used to, but once it's setup, moreover assuming Jenkins jobs would be created for the purpose, things should get settled and releases smooth.



来源:https://stackoverflow.com/questions/20075382/release-modules-w-different-version-of-multimodule-maven-project-through-jenkin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!