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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:54:57+00:00 2026-06-05T17:54:57+00:00

Im having a problem with a multimodule project in maven/jenkins. For example my structure

  • 0

Im having a problem with a multimodule project in maven/jenkins.
For example my structure is like this:

---ProjectA
----pom.xml
--------ModuleA
---------pom.xml
--------ModuleB
---------pom.xml

---ProjectB
-----pom.xml

For example ModuleA has a dependency for something in ProjectB which is defined in ModuleA’s pom except for the version which is only defined as property and is inherited from ProjectA’s properties section.

I want to automate the release process to get rid of all the manual update of versions in all the poms. So after making a release of ProjectB I what to bump all references in ProjectA.

EDIT
More accurate I want to Release ProjectB which has to include a release of ProjectA (because of dependencies) and in the new Snapshots of ProjectA I want references to the newest ProjectB there is.

The maven plugin versions does this pretty well if one would specify the dependency and the version number in the same pom. My problem as you can see is that (I’m speculating) when version plugin tries to check the property field in ProjectA’s pom the property can’t be associated with a dependency. And I guess that versions plugin looks on the effective pom because it CAN find that the dependency in ModuleA’s pom should be updated. It just can’t update it due to the fact that its not defined there.

Would be much obliged for a solution which could keep my properties in the parent pom.

Thanks

  • 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-05T17:54:59+00:00Added an answer on June 5, 2026 at 5:54 pm

    Ok. SO I think I’ve worked something out, but i’ll post it here for others to see.

    So the thing I think is the problem is that the autoLinkItem only searches the current file for linkage and if you want a property to get assosiated with a dependency not specified in the same file one could explicitly tell the plugin in this.

    Like this:

    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <version>1.2</version>
        <configuration>
            <properties>
                <property>
                    <name>basis.version</name>
                    <dependencies>
                        <dependency>
                            <groupId>com.mycompany.app.basis</groupId>
                            <artifactId>ModuleBasis</artifactId>
                        </dependency>
                    </dependencies>
                </property>
            </properties>
            <includeProperties>basis.version</includeProperties>
            <generateBackupPoms>false</generateBackupPoms>
            <allowSnapshots>true</allowSnapshots>
        </configuration>
    </plugin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having problem in my UIscrollView ,this is what I have done: Whenever a
I am having problem to get a numerical value for this expression where I
Having problem with this bit of code qith jQuery. it should pick the values
I having problem to update the counter (integer value). this is the definitions of
i having problem in converting this C# code into VB.net. The loadLecturer seem to
I am having problem in using this font in my Application. I have imported
I am having problem with random number generation in c#. If I RUN this
I'm having problem with my array basicly this is what i have: $test =
I'm having problem with JavaScript debugger under project that uses dojo.require() to load JavaScript
Having problem with my application, I seem to be new in ios. My project

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.