Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-alpha-6
-
None
-
maven 2.0.2 on windows xp.
Description
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.