simpligility / maven-repository-tools

Tools for interacting with Maven repositories
Eclipse Public License 1.0
137 stars 66 forks source link

Header authorization #41

Closed dgeissl closed 5 years ago

dgeissl commented 6 years ago

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.

mosabua commented 5 years ago

Wow.. must have overlooked that one.. Sorry

mosabua commented 5 years ago

you want me to cut a release?

dgeissl commented 5 years ago

I've used a snapshot build for my purposes, so it's your descision if it's enough for a release or not.