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

The Release-Plugin does not rewrite dependencies in the DependencyManagement with scope "import"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-9
    • 2.2.2
    • prepare
    • None

    Description

      Add the following node to the pom. Then prepare the release and this section will not be rewriten, because the "imported" entry will not appear in
      project.getDependencyManagement().getDependencies(). This methode returns all the resolved dependencies. In this situation the transformDocument method from AbstractRewritePomsPhase could not change the given dependencies, because it is not visible to the method.

      <dependencyManagement>
      <dependencies>
      <dependency>
      <groupId>dist</groupId>
      <artifactId>deps</artifactId>
      <type>pom</type>
      <version>4.0.4-SNAPSHOT</version>
      <scope>import</scope>
      </dependency>
      </dependencies>
      </dependencyManagement>

      Attachments

        1. MRELEASE-412_and_MRELEASE-454.patch
          64 kB
          Pedro Rodriguez
        2. MRELEASE-454.patch
          57 kB
          Pedro Rodriguez
        3. MRELEASE-454.diff
          3 kB
          Pedro Rodriguez

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              jens.muehlenhoff Jens Mühlenhoff
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: