mayur patki
mayur patki

Reputation: 381

Releasing artifacts individually within a multi module - aggregator maven project

Would like to break down the question in two parts

  1. Does maven provide anyway to update release version individually for each module under a multi module project.
  2. The aggregator pom (root project) has a parent module and other dependent modules, hence want to release the parent module with a version and update that version in the other dependent modules.

Using maven 3.6.2

Have tried release:prepare-with-pom but it uses the root/parent version across all modules.

E.g.

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

As per the above example I want to release each individual module with the next release version and when the parent module is released - would want to use the release version of parent in all the dependent modules.

Upvotes: 2

Views: 573

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35795

From your description, may be the

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

is what you are looking for.

It allows you to release different modules with different versions.

Upvotes: 2

Related Questions