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

Internal dependencies left at old snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0-beta-6
    • None
    • prepare
    • None
    • Patch

    Description

      I'm having a problem with version numbering when releasing a given reactor with modules within the reactor that have dependencies inside the reactor.

      I have narrowed this to the following structure

      A parent test/pom.xml (basically a pom packging grouping pom - but here is where the scm and repos are also defined) with

      <groupId>test</groupId>
      <artifactId>test</artifactId>
      <packaging>pom</packaging>
      <version>1.0-SNAPSHOT</version>

      and

      <modules>
      <module>test-1</module>
      <module>test-2</module>
      </modules>

      Then - the two modules:

      test/test-1/pom.xml with

      <parent>
      <groupId>test</groupId>
      <artifactId>test</artifactId>
      <version>1.0-SNAPSHOT</version>
      </parent>
      <groupId>test</groupId>
      <artifactId>test-1</artifactId>
      <version>1.0-SNAPSHOT</version>

      test/test-2/pom.xml with

      <parent>
      <groupId>test</groupId>
      <artifactId>test</artifactId>
      <version>1.0-SNAPSHOT</version>
      </parent>
      <groupId>test</groupId>
      <artifactId>test-2</artifactId>
      <version>1.0-SNAPSHOT</version>
      <dependencies>
      <dependency>
      <groupId>test</groupId>
      <artifactId>test-1</artifactId>
      <version>1.0-SNAPSHOT</version>
      </dependency>
      </dependencies>

      Then run mvn -DdryRun=true release:prepare

      test/pom.xml.tag version=1.0 - good
      test/pom.xml.next version=1.1-SNAPSHOT - good

      test-1/pom.xml.tag version=1.0, parent version=1.0 good
      test-1/pom.xml.next version=1.1-SNAPSHOT, parent version=1.1-SNAPSHOT - good

      test-2/pom.xml.tag version=1.0, parent version=1.0, dependency to test-1 version=1.0 good
      test-2/pom.xml.next version=1.1-SNAPSHOT, parent version=1.1-SNAPSHOT - good

      BUT

      test-2/pom.xml.next dependency to test-1 version=1.0-SNAPSHOT

      This seems wrong to me - I would expect it to also get 1.1-SNAPSHOT for the dependency on test-1 since it has the same parent and is being run in the same reactor.

      Attachments

        1. release_test.zip
          2.48 MB
          Trevor Spackman
        2. mrelease_295_test_patch.txt
          4 kB
          Samuli Saarinen

        Issue Links

          Activity

            People

              brett Brett Porter
              chrissearle Chris Searle
              Votes:
              8 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: