[
https://issues.apache.org/jira/browse/WAGON-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16578260#comment-16578260
]
Hüseyin Kartal edited comment on WAGON-524 at 8/13/18 1:52 PM:
---------------------------------------------------------------
I think i managed to get the requested log.
was (Author: hsyn):
Didn't sure how to enable that httpClient log. I hope the provided debug -X log
contains the requested information.[^deployX.txt]
> Deploy fails with AuthorizationException "Forbidden"
> ----------------------------------------------------
>
> Key: WAGON-524
> URL: https://issues.apache.org/jira/browse/WAGON-524
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-webdav
> Affects Versions: 3.1.0
> Reporter: Hüseyin Kartal
> Priority: Major
> Fix For: waiting-for-feedback
>
> Attachments: deployX.txt, webdav.zip
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> I try to deploy my artifacts to an WebDAV server. Via HTTPS.
> If the directory structure is missing (empty) the deployment of the artifacts
> fails.
> {{c:\DEV\webdav>mvn deploy}}
> {{[INFO] Scanning for projects...}}
> {{[INFO]}}
> {{[INFO] --------------------------< org.wagon:webdav
> >--------------------------}}
> {{[INFO] Building webdav 0.0.1-SNAPSHOT}}
> {{[INFO] --------------------------------[ pom
> ]---------------------------------}}
> {{[INFO]}}
> {{[INFO] — maven-install-plugin:2.4:install (default-install) @ webdav ---}}
> {{[INFO] Installing c:\DEV\webdav\pom.xml to
> C:\Users\x\.m2\repository\org\wagon\webdav\0.0.1-SNAPSHOT\webdav-0.0.1-SNAPSHOT.pom}}
> {{[INFO]}}
> {{[INFO] — maven-deploy-plugin:2.8.2:deploy (default-deploy) @ webdav ---}}
> {{[INFO] Downloading from private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]}}
> {{[INFO] Uploading to private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/webdav-0.0.1-20180809.152257-1.pom]}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[INFO] BUILD FAILURE}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[INFO] Total time: 2.497 s}}
> {{[INFO] Finished at: 2018-08-09T17:22:58+02:00}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on
> project webdav: Failed to deploy artifacts: Could not transfer artifact
> org.wagon}}
> {{:(webdav:pom:0.0.1-20180809.152257-1 from/to private-repo
> ([https://webdav.magentacloud.de):|https://webdav.magentacloud.de%29/] Access
> denied to:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/webdav-0.0.1-20180]}}
> {{809.152257-1.pom, ReasonPhrase: Forbidden. -> [Help 1]}}
> {{[ERROR]}}
> {{[ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.}}
> {{[ERROR] Re-run Maven using the -X switch to enable full debug logging.}}
> {{[ERROR]}}
> {{[ERROR] For more information about the errors and possible solutions,
> please read the following articles:}}
> {{[ERROR] [Help 1]
> [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException]}}{{c:\DEV\repo\git\webdav>}}
>
> But if you create the expected directories manualy the deployment succeeds.
> {{c:\DEV\webdav>mvn deploy}}
> {{[INFO] Scanning for projects...}}
> {{[INFO]}}
> {{[INFO] --------------------------< org.wagon:webdav
> >--------------------------}}
> {{[INFO] Building webdav 0.0.1-SNAPSHOT}}
> {{[INFO] --------------------------------[ pom
> ]---------------------------------}}
> {{[INFO]}}
> {{[INFO] — maven-install-plugin:2.4:install (default-install) @ webdav ---}}
> {{[INFO] Installing c:\DEV\webdav\pom.xml to
> C:\Users\x\.m2\repository\org\wagon\webdav\0.0.1-SNAPSHOT\webdav-0.0.1-SNAPSHOT.pom}}
> {{[INFO]}}
> {{[INFO] — maven-deploy-plugin:2.8.2:deploy (default-deploy) @ webdav ---}}
> {{[INFO] Downloading from private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]}}
> {{[INFO] Downloaded from private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]
> (592 B at 407 B/s)}}
> {{[INFO] Uploading to private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/webdav-0.0.1-20180809.152158-3.pom]}}
> {{[INFO] Uploaded to private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/webdav-0.0.1-20180809.152158-3.pom]
> (1.4 kB at 2.9 kB/s)}}
> {{[INFO] Downloading from private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/maven-metadata.xml]}}
> {{[INFO] Downloaded from private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/maven-metadata.xml] (275 B
> at 1.9 kB/s)}}
> {{[INFO] Uploading to private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]}}
> {{[INFO] Uploaded to private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/0.0.1-SNAPSHOT/maven-metadata.xml]
> (592 B at 1.3 kB/s)}}
> {{[INFO] Uploading to private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/maven-metadata.xml]}}
> {{[INFO] Uploaded to private-repo:
> [https://webdav.magentacloud.de/org/wagon/webdav/maven-metadata.xml] (275 B
> at 481 B/s)}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[INFO] BUILD SUCCESS}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[INFO] Total time: 4.539 s}}
> {{[INFO] Finished at: 2018-08-09T17:22:00+02:00}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> I submitted a core test project to reproduce the issue. Just set three
> environment variables and call "mvn deploy".
>
> WEBDAV_URL=[https://webdav.magentacloud.de|https://webdav.magentacloud.de/]
> WEBDAV_USERNAME
> WEBDAV_PASSWORD
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)