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

release:prepare does not pass argument "--settings" with current settings.xml to inner maven

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0-beta-9, 2.0
    • 2.2.2
    • prepare

    Description

      The impact is that release:prepare tries to use $HOME/.m2/settings.xml instead of the one supplied by --settings cmdline option, which leads to unexpected behavior
      Of course if it does not exist, the inhouse repository is avoided and release often fails due to a ResourceDoesNotExistException when an inhouse artifact is requested by the pom.

      To reproduce this problem, just rename your ~/.m2/settings.xml to ~/.m2/s.xml and run this:
      mvn --settings=$HOME/.m2/s.xml release:prepare .....

      Attachments

        Issue Links

          Activity

            People

              stephenconnolly stephenconnolly
              pkozelka Petr Kozelka
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: