When using the checkTarget option (enabled by default) the maven-repository-deployer should upload only new artifacts and not try to reupload existing. This is done by issuing a header request to the pom in the target repository. If the target repository is protected and can only be read with the provided credentials the http response code is not 200 (OK) and a reupload is tried (which may fail due to repository restrictions).
This pull request applies the authentication credentials for the target repository to the header request.
When using the
checkTarget
option (enabled by default) the maven-repository-deployer should upload only new artifacts and not try to reupload existing. This is done by issuing a header request to the pom in the target repository. If the target repository is protected and can only be read with the provided credentials the http response code is not 200 (OK) and a reupload is tried (which may fail due to repository restrictions).This pull request applies the authentication credentials for the target repository to the header request.