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

Override SNAPSHOT dependencies from command line

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-M1
    • None
    • None

    Description

      As a user I would like to be able to override SNAPSHOT dependencies from the command line so that the build would not be aborted if I have SNAPSHOT dependencies in my pom.xml.
      For example let's consider I have a pom.xml which declares the following dependency:

      <dependency>
          <groupId>com.mycompany</groupId>
          <artifactId>test</artifactId</artifactId>
          <version>1.0-SNAPSHOT</version>
      </dependency>
      

      or this parent:

      <parent>
          <groupId>com.mycompany</groupId>
          <artifactId>test</artifactId</artifactId>
          <version>1.0-SNAPSHOT</version>
      </parent>
      

      When I start the build it would fail, because I have unresolved SNAPSHOT dependencies. However, it would be really useful if I can specify the following:

      mvn release:prepare --batch-mode -DdependencyVersion.com.mycompany:test=1.1.RELEASE -DdevelopmentVersion.com.mycompany:test=1.2.BUILD-SNAPSHOT
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            paranoiabla Petar Tahchiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m