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

[jira] [Created] (MWRAPPER-86) Trim trailing slash in Repo URL

Björn Michael created MWRAPPER-86:
-------------------------------------

             Summary: Trim trailing slash in Repo URL
                 Key: MWRAPPER-86
                 URL: https://issues.apache.org/jira/browse/MWRAPPER-86
             Project: Maven Wrapper
          Issue Type: Bug
          Components: Maven Wrapper Plugin
    Affects Versions: 3.1.1
            Reporter: Björn Michael


If repository URL ends with a trailing slash then the URLs in {{maven-wrapper.properties}} contain double slashes.

E.g. {{MVNW_REPOURL=[https://myrepo.local/]}} ends up with
{code:java}
distributionUrl=https://myrepo.local//org/apache/maven/apache-maven/3.8.7/apache-maven-3.8.7-bin.zip
wrapperUrl=https://myrepo.local//org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar{code}
This also occurs when mirror * URL ends with trailing slash.



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