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

Unable to release:perform on windows if a file name contains spaces on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.3
    • 3.0.0-M1
    • None
    • None

    Description

      Using the 2.5.3 version of the release plugin, on a Windows 10 machine, to generate the vote artifacts for the upcoming JSPWiki 2.10.3, I stumbled upon the following error message while doing an mvn release:perform:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project jspwiki-builder: An error occurred during the status check process: Exception while executing SCM command.: Error while executing command. Error inside systemOut parser: Illegal character in path at index 0: "jspwiki-war/src/main/styles/haddock/fontjspwiki/FontJspwiki/Read%20Me.txt"
      

      which resulted on being unable to prepare the release.

      Seems that this is caused by the underlying maven-scm-* artifacts' versions, which seem to have caused this issue on other places too (f.ex.: https://issues.jenkins-ci.org/browse/JENKINS-24686). This behaviour appears to be caused by https://issues.apache.org/jira/browse/SCM-772, but that's just an impression.

      The fix would be to simply bump scmVersion property from 1.9.4 to 1.9.5 on https://svn.apache.org/viewvc/maven/release/trunk/pom.xml?view=markup#l88

      Steps to reproduce:

      mvn release:prepare -DdryRun -DautoVersionSubmodules=true on https://github.com/apache/jspwiki/commit/0f38188a1c49fbefa957e7486a0ead943b8642d8

      Workaround: declare 1.9.5 versions of maven-scm-* artifacts as maven-release-plugin dependencies (as done on the aforementioned Jenkins issue and at https://github.com/apache/jspwiki/commit/339d66c349ee0234c6e903b81a6af8d9eae842b5):

        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.5.3</version>
          <dependencies>
            <dependency>
              <groupId>org.apache.maven.scm</groupId>
              <artifactId>maven-scm-api</artifactId>
              <version>1.9.5</version>
            </dependency>
            <dependency>
              <groupId>org.apache.maven.scm</groupId>
              <artifactId>maven-scm-providers-standard</artifactId>
              <version>1.9.5</version>
              <type>pom</type>
              <scope>runtime</scope>
            </dependency>
          </dependencies>
        </plugin>
      

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              juanpablo Juan Pablo Santos Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: