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

release plugin fails on version ranges

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.0
    • None
    • prepare
    • None
    • Mac OS X 10.6, maven 2.2.1

    Description

      I have the following dependency in my pom.xml
      <dependency>
      <groupId>com.ften.protocols</groupId>
      <artifactId>protocols</artifactId>
      <version>[3.0.0,)</version>
      <scope>compile</scope>
      </dependency>

      I downloaded the source for maven-release 2.0 and installed locally.
      If I specify 2.0-beta-9, then mvn release:perform functions as it should. If I specify maven-release-plugin version 2.0, I get the following error:
      [INFO] Checking dependencies and plugins for snapshots ...
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] version was null for com.ften.protocols:protocols
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException: version was null for com.ften.protocols:protocols
      at org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:390)
      at org.apache.maven.artifact.DefaultArtifact.isSnapshot(DefaultArtifact.java:562)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              scooper4711 Stephen Cooper
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: