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

cannot perform a release with another pom then pom.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.3.1
    • perform
    • None

    Description

      If for an obscure but uncontrolable reason I hava a pom named anything else then pom.xml, like pom2.xml, the following command don't work :

      mvn -f pom2.xml release:prepare release:perform

      the prepare phase works well. But the perform have this error : the deploy command launched on the checked out code (in the target folder) run with pom.xml... I fixed it with the following code change :

      RunPerformGoalsPhase.java, line 71
              // ensure we don't use the release pom for the perform goals
              if ( !StringUtils.isEmpty( additionalArguments ) )
              {
                  additionalArguments = additionalArguments + " -f pom.xml";
              }
              else
              {
                  additionalArguments = "-f pom.xml";
              }
      

      with :

              // ensure we don't use the release pom for the perform goals
              if ( !StringUtils.isEmpty( additionalArguments ) )
              {
                  additionalArguments = additionalArguments + " -f " + pomFileName;
              }
              else
              {
                  additionalArguments = "-f " + pomFileName;
              }
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            epotvin Emmanuel Potvin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: