You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2018/04/29 21:01:00 UTC

[jira] [Closed] (WAGON-450) Directory name with escaped slashes is not handled correctly

     [ https://issues.apache.org/jira/browse/WAGON-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed WAGON-450.
--------------------------------
    Resolution: Invalid

Works for me with 

{noformat}
PS D:\Entwicklung\Projekte\WAGON-450%2Fexample\showcase> git diff
diff --git a/showcase/pom.xml b/showcase/pom.xml
index b0ccfd5..2642b0f 100644
--- a/showcase/pom.xml
+++ b/showcase/pom.xml
@@ -26,7 +26,7 @@
         <repository>
             <id>project.local</id>
             <name>project</name>
-            <url>file:${project.basedir}/repo</url>
+            <url>${project.baseUri}/repo</url>
         </repository>
     </repositories>
 </project>
{noformat}

and

{noformat}
[mosipov@mika-ion ~/Projekte/WAGON-450%2Fexample/showcase]$ git diff
diff --git a/showcase/pom.xml b/showcase/pom.xml
index b0ccfd5..83be2b3 100644
--- a/showcase/pom.xml
+++ b/showcase/pom.xml
@@ -26,7 +26,7 @@
         <repository>
             <id>project.local</id>
             <name>project</name>
-            <url>file:${project.basedir}/repo</url>
+           <url>${project.baseUri}/repo</url>
         </repository>
     </repositories>
 </project>
{noformat}

on 

{noformat}
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Maven home: D:\Entwicklung\Programme\apache-maven-3.5.3\bin\..
Java version: 1.8.0_162, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_162\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
{noformat}

and 

{noformat}
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00)
Maven home: /usr/local/share/java/maven
Java version: 1.8.0_162, vendor: Oracle Corporation
Java home: /usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "11.1-release-p9", arch: "i386", family: "unix"
{noformat}


> Directory name with escaped slashes is not handled correctly
> ------------------------------------------------------------
>
>                 Key: WAGON-450
>                 URL: https://issues.apache.org/jira/browse/WAGON-450
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-file
>    Affects Versions: 2.10
>         Environment: RHEL6 x64
>            Reporter: RomanS
>            Priority: Major
>
> Project is located in directory /a/b%2Fc and has file protocol repository reference: 
> {code:xml}
> <repository>
>   <id>project.local</id>
>   <name>project</name>
>   <url>file:${project.basedir}/repo</url>
> </repository>
> {code}
> During build it fails with: [ERROR] Failed to execute goal on project core-api: Could not resolve dependencies for project xxxxxxxxx: Failed to collect dependencies at xxxxxxxxxxxx:1.0-SNAPSHOT: Failed to read
> artifact descriptor for xxxxxxxxx:1.0-SNAPSHOT: Could not transfer artifact xxxxxxxx:1.0-SNAPSHOT from/to project.local (file:/a/b%2Fc/repo): Repository path /a/b/c/repo does not exist, and cannot be created. -> [Help 1]
> Workaround: rename project directory to smth w/o "%2F".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)