简体   繁体   中英

maven-deploy-plugin Failed to deploy artifacts: ReasonPhrase: . - No Reasonphrase

I got a strange error with the maven-deploy-plugin

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project mycomponent: Failed to deploy artifacts: Could not transfer artifact nz.co.mycompmany:mycomponent:zip:1.0.35-20180115.210413-4 from/to libs-snapshot-local (https://mycompmany/libs-snapshot-local/): Access denied to: https://mycompmany/libs-snapshot-local/nz/co/mycompmany/mycomponent/1.0.35-SNAPSHOT/mycomponent-1.0.35-20180115.210413-4.zip, ReasonPhrase: . -> [Help 1]

So reasonphrase is empty. Normally there would be something like: ReasonPhrase: Unauthorized.

The artifact is in fact uploaded. But when downloading the artifact after the upload somehow it can't:

Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: https://mycompmany/libs-snapshot-local/nz/co/mycompmany/mycomponant/1.0.35-SNAPSHOT/mycomponant-1.0.35-20180115.210413-4.zip, ReasonPhrase: .

So everything seems fine, just maven-deploy-plugin seems to be not happy.

What could that be ?

The error will not happen if I run the command like this:
mvn clean package org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy instead of
mvn clean package deploy

So if I fix it to maven-deploy-plugin version it will not fail.

This seems like a plugin issue.

Access to your libs-snapshot-local maven repository is protected (probably by password) and maven doesn't know this password. See here for details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM