Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-843

Child modules defined in profiles aren't updated by update-versions

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • update-versions
    • None

    Description

      When I do a mvn:update-versions for a multi-module project that has one of its modules defined in a profile, the modules defined in the profile don't have their versions updated. I would expect these modules to also be updated.

      pom.xml
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <packaging>pom</packaging>
      
        <groupId>com.example</groupId>
        <artifactId>example-parent</artifactId>
        <version>1.0.0-SNAPSHOT</version>
      
        <modules>
          <module>example-module1</module>
        </modules>
        
        <profiles>
          <profile>
            <id>my-profile</id>
            <modules>
              <module>example-module2</module>
            </modules>
          </profile>
        </profiles>
      
        <scm>
           <developerConnection>scm:git:examplerepo:example.git</developerConnection>
         </scm>
      </project>
      

      In this example, when I execute mvn release:update-versions, I get queried to update example-parent and example-module1, but not example-module2.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mjjustin M. Justin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment