I have a multi-module build where all the projects are to be released
as one with the same version number. I'm looking for the best practice
to handle this.

Currently, as per
https://github.com/OpenGamma/OG-Platform/tree/topic/maven, I have this
setup:

aggregator pom (in root)
parent pom
pom in each jar-producing child

Both the aggregator and parent specify the version number. All the
children use ${project.version} for inter-project dependencies. But,
the children are forced by the pom to refer to the parent by an
explicit version number, resulting in the version number being
everywhere.


My preferred solution is to remove the version from the child and rely
totally on the relativePath. While this would mean that the project
could not be built without its parent being in place, that seems
entirely reasonable in this scenario. But this would no doubt need a
new mvn major version.

mvn versions:update-child-modules  does not work to help update
versions as the aggregator is separate from the parent.


Am I missing something, or does maven really force the version number
to be everywhere.
thanks
Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to