The wagon-http-lightweight fails with response 201 and 204 when using maven deploy and release:perform plugins.
The error messages are:
[INFO] Error deploying artifact: Unable to transfer file. HttpURLConnection returned the response code: 201
[INFO] Error deploying artifact: Unable to transfer file. HttpURLConnection returned the response code: 204
The wagon-http-lightweight fails because it only handles response code 200 and flags the rest as errors.
The attached patch file should address this problem as it uses the same code handling mechanism from wagon-http. This patch can also be used to address the WAGONHTTP-7 issue for wagon-http.
With this patch, the wagon-http and wagon-http-lightweight.will work with webdav for the deploy and release plugin.
|Field||Original Value||New Value|
|Status||Open [ 1 ]||Closed [ 6 ]|
|Fix Version/s||1.0-alpha-7 [ 12282 ]|
|Assignee||Brett Porter [ brettporter ]|
|Resolution||Fixed [ 1 ]|
|Workflow||jira [ 48965 ]||Maven New [ 88506 ]|
|Component/s||wagon-http-lightweight [ 12152 ]|