在多模块中单独发布工件 - 聚合器 maven 项目

Releasing artifacts individually within a multi module - aggregator maven project

想把问题分成两部分

  1. maven 是否提供为多模块项目下的每个模块单独更新发布版本。
  2. 聚合器pom(根项目)有一个父模块和其他依赖模块,因此想发布一个版本的父模块并在其他依赖模块中更新该版本。

使用 maven 3.6.2

已尝试 release:prepare-with-pom 但它在所有模块中使用 root/parent 版本。

例如

   AggregatorPom -> modules -- module1 (independent module, not dependent 
                                        on parent)
                               parent module
                               module2 (dependent on parent module)
                               module3 (dependent on parent module)

按照上面的例子,我想用下一个发布版本发布每个单独的模块,当发布父模块时——我想在所有依赖模块中使用父模块的发布版本。

根据你的描述,可能是

https://github.com/danielflower/multi-module-maven-release-plugin

就是您要找的。

它允许您发布不同版本的不同模块。