You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Delany (Jira)" <ji...@apache.org> on 2023/03/24 16:33:00 UTC

[jira] [Created] (MWRAPPER-107) Windows script fails to process userinfo

Delany created MWRAPPER-107:
-------------------------------

             Summary: Windows script fails to process userinfo
                 Key: MWRAPPER-107
                 URL: https://issues.apache.org/jira/browse/MWRAPPER-107
             Project: Maven Wrapper
          Issue Type: Bug
          Components: Maven Wrapper Scripts
    Affects Versions: 3.2.0
         Environment: Windows
            Reporter: Delany


The build fail when the [userinfo field|https://maven.apache.org/wrapper/index.html#using-basic-authentication-for-distribution-download] is set in the distributionUrl for type only-script, but only for mvnw.cmd. The mvnw scripts runs without error on Linux.
{noformat}
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 ≡]>{noformat}
https://maven.apache.org/wrapper/index.html#using-basic-authentication-for-distribution-download



--
This message was sent by Atlassian Jira
(v8.20.10#820010)