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 8417187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:58:17+00:00 2026-06-10T01:58:17+00:00

What is the best practice for versioning and release management in the following case

  • 0

What is the best practice for versioning and release management in the following case with multiprojects?

Project structure

  • global parent
    • parent project (Version: 1.0-SNAPSHOT)
      • child project 1 (same like parent)
      • child project 2 (same like parent)
      • child project 3 (same like parent)
      • child project 4 (same like parent)
      • …

I want to set only one time the version for the parent and all child projects, because every part of the project must have the same version.

Also what i want is, to release the project with continuum/maven.

Current “bad” solution:

Normaly a easy way should be to set the version in the parent pom and say in every child „last version from parent“ but this dont work with maven <3.1 (See here)[http://jira.codehaus.org/browse/MNG-624]
Now i set in every child project the version of the parent project and for every release i must change the version in all childs and the parent.

Example:

Parent

<groupId>com.test</groupId>
<artifactId>com.test.buildDefinition</artifactId>
<version>1.0-SNAPSHOT</version>

Child

<parent>
    <groupId>com.test</groupId>
    <artifactId>com.test.buildDefinition</artifactId>
    <version>1.0-SNAPSHOT</version>
</parent>

<groupId>com.test</groupId>
<artifactId>com.test.project</artifactId>
<version>${parent.version}</version>

If i want to release my projects now with Continuum i use the following order to release it:

  1. Parent Project
  2. Child Project 1
  3. Child Project 2
  4. …

But this dont work, because after changeing the version of the parent, the childs dont have anymore a SNAPSHOT version in the parent and i think there must be a better way to release a multiproject with continuum.

  • 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-06-10T01:58:18+00:00Added an answer on June 10, 2026 at 1:58 am

    If you add your child modules in the <dependencyManagement/> tag I am quite sure that you will not have that problem.

    Parent

    <groupId>com.test</groupId>
    <artifactId>com.test.buildDefinition</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    
    <modules>
        <module>child1</module>
        <module>child2</module>
    </modules>
    
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.test</groupId>
                <artifactId>com.test.child1</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.test</groupId>
                <artifactId>com.test.child2</artifactId>
                <version>${project.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    

    Child1

    <parent>
        <groupId>com.test</groupId>
        <artifactId>com.test.buildDefinition</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    
    <!-- groupId and version can be skipped since it will be inherited from parent -->
    <artifactId>com.test.child1</artifactId>
    

    Child2 (depends on Child1)

    <parent>
        <groupId>com.test</groupId>
        <artifactId>com.test.buildDefinition</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    
    <!-- groupId and version can be skipped since it will be inherited from parent -->
    <artifactId>com.test.child2</artifactId>
    
    <dependencies>
        <dependency>
            <groupId>com.test</groupId>
            <artifactId>com.test.child1</artifactId>
        </dependency>
    </dependencies>
    

    If you try to when using the dependencyManagement the dependencies between modules will never have to define any versions since they are defined in the parents pom.

    I have never had any problems with releasing multi-module projects by this approach.

    Edit

    To be clear: dependencyManagement does not have anything to do with the inheritence between parent-child. It solves any problems with the version of dependencies between child modules. And it works during releases.

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

Sidebar

Related Questions

Is there a best practice pattern to model the following parent child relationship where
Which best practice involved in software configuration management to help in improving project management?
Best practice for REST resource versioning is putting version information into Accept/Content-Type headers of
Is there any guideline or standard best practice how to version a software you
Where is the 'best practice' place to put @Configuration beans in one's Spring project?
Any best practice or recommended project layouts for a django project in eclipse? In
What is the best practice in multidimensional array structure in terms of what elements
I am wondering what your best practice is regarding managing (and versioning) different kind
I'm trying to create and follow best practices for versioning control and came across
Best practice is to use unique ivs, but what is unique? Is it unique

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.