Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.2.0
-
None
-
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