Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6938969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:33:34+00:00 2026-05-27T12:33:34+00:00

Goal Multimodule maven release with tags per module Situation Assume the following project structure

  • 0

Goal

Multimodule maven release with tags per module

Situation

Assume the following project structure for a Maven-based Java project:

xx-parent
xx-moduleA
xx-moduleB
xx-moduleC/submodule1
xx-moduleC/submodule2
xx-moduleC/submodule3

The project structure in Subversion is as follows:

xx-parent/trunk
xx-moduleA/trunk
xx-moduleB/trunk
xx-moduleC/trunk/submodule1
xx-moduleC/trunk/submodule2
xx-moduleC/trunk/submodule3

My goal is to create tags per module when performing a release:

xx-parent/tags/xx-parent-1.0
xx-moduleA/tags/xx-moduleA-1.0
xx-moduleB/tags/xx-moduleB-1.0
xx-moduleC/tags/xx-moduleC-1.0

In the past, each module was built and released separately. As the project grew larger (30 modules), the time to build a release increased. I would like to change the project to a multi-module set up to perform a reactor build and release. Building doesn’t seem to be a problem, but creating tags per module is.

The maven-release-plugin seems to insist on making only a single tag for the whole project/release. I’m looking for a way to create multiple tags, e.g. a tag per module.

What I have tried so far

  • Creating a xx-all Subversion alias, which checks out all sub-modules, so I can reference them with <module>../xx-moduleB</module>
  • Enabling commitByProject, which did commit per module, but not tag per module. See
  • Each module has its own <scm> elements in the pom.xml, but they are not used when performing a reactor release.
  • mvn --batch-mode -DcommitPerProject=true -DautoVersionSubmodules=true -Drelease.version=1.0.6 release:prepare release:perform

Problems

  • maven-release-plugin does not create a svn tag per module
  • maven-release-plugin overwrites the <scm> tag with invalid URLs, e.g. nested “trunk”-tags under the xx-parent tag

Question

How can I set up this project with a Maven release process, a multi-module layout and still get separate tags per module?

References

http://jira.codehaus.org/browse/MRELEASE-261 (Closed) and MRELEASE-561 (Open)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:33:34+00:00Added an answer on May 27, 2026 at 12:33 pm

    According to Arnaud Héritier (an Apache Maven PMC member),

    Maven can’t handle composite applications like module-A v0.1, module-B v0.3.

    Maven consider a project and all his sub-modules as a unique set.

    see: http://blog.aheritier.net/maven-release-plugin-2-0/ (9 June 2010)

    Maybe the situation changed since with Maven 3 ?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multimodule maven project like this myproject framework1 f1-presentation *.java f1-core *.java f1-tag
My multi-module Maven project looks like: /foo pom.xml /foo-parent /foo-core /foo-something /src /site Pay
I'm trying to release a multi-module maven project that uses git as the SCM,
I have a maven multi-module project. The final goal wraps up all the libraries,
is it possible to use the maven release plugin with a multi-module project, where
This is my parent pom.xml (part of it) in a multi-module project: ... <build>
I have a Multimodule project like this: parent entities jibx-exporter I have configured jibx
I have a multi-module maven project (several levels of nesting). Normally, when I execute
There is a multi-module Maven-3 project, where one of sub-modules is used as <dependency>
We have a multi module project with following modules: Database Persistence Business Application The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.