Uploaded image for project: 'Maven Wrapper'
  1. Maven Wrapper
  2. MWRAPPER-107

Windows script fails to process userinfo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0
    • None
    • Maven Wrapper Scripts
    • None
    • Windows

    Description

      The build fail when the userinfo field is set in the distributionUrl for type only-script, but only for mvnw.cmd. The mvnw scripts runs without error on Linux.

      C:\git\tester [tester ≡]> .\mvnw.cmd clean -N
      icm : Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (401) Unauthorized."
      At line:1 char:53
      + ... 'mvnw.cmd'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw ...
      +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [Invoke-Command], MethodInvocationException
          + FullyQualifiedErrorId : WebException,Microsoft.PowerShell.Commands.InvokeCommandCommand
      ECHO is on.
      Cannot start maven from wrapper
      C:\git\tester [tester ≡]>

      https://maven.apache.org/wrapper/index.html#using-basic-authentication-for-distribution-download

      Attachments

        Activity

          People

            Unassigned Unassigned
            delany Delany
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: