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

Snapshot dependency check does not consider transitive dependencies

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Not A Problem
    • Affects Version/s: 2.4.2
    • Fix Version/s: None
    • Component/s: prepare
    • Labels:
      None
    • Environment:
      Maven 3.0.3
      Java 1.6

      Description

      With maven-release-plugin 2.4.2 we are encountering an issue which has a very big impact on our production deployment infrastructure.

      In our latest released artifact's poms we were surprised to see snapshot versions, which is by default prohibited by maven release plugin.

      We tracked the issue down and noticed a difference between "normal" maven dependency resolution (e.g. dependency:tree) and the one produced by maven-release-plugin.

      I attached a sample project suite which very easy reproduces the problem.
      Please look into the README in the maven-release-bug-parent project. The steps to reproduce include the local installation of some artifacts, partially in different versions.

      The outcome of the project is a clearly error-free run release:prepare but with the following dependency tree:

      D:\maven-release-bug-project>mvn dependency:tree
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building maven-release-bug-project 0.0.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ maven-release-bug-project ---
      [INFO] de.tolina.test:maven-release-bug-project:jar:0.0.1-SNAPSHOT
      [INFO] \- de.tolina.test:maven-release-bug-dependency2:jar:0.0.1:compile
      [INFO]    \- de.tolina.test:maven-release-bug-dependency:jar:*0.0.2-SNAPSHOT*:compile (version managed from 0.0.1)
      

        Attachments

        1. maven-release-bug.zip
          14 kB
          Frank Jakop

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              fj Frank Jakop
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: