You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eduardo Souza <ed...@gmail.com> on 2021/06/05 20:10:30 UTC

Authentication Header (maven-metadata.xml)

Hi,

Is there any reason to not send the authentication header when downloading
the maven-metadata.xml file in the deploy phase when the artifact is
snapshot?

Eduardo Souza
eduardomatosouza@gmail.com

Re: Authentication Header (maven-metadata.xml)

Posted by Olivier Lamy <ol...@apache.org>.
your repository can be protected even for reading and how Maven could know
it's not?
as long as there is an entry in ~/.m2/settings,xml with an id corresponding
to the same id in your pom the authz will be sent.
If this is really a problem (if you use https it shouldn't be) you can have
a look at some extra configuration here
https://maven.apache.org/guides/mini/guide-http-settings.html
HTH
--
Olivier

On Sun, 6 Jun 2021 at 22:29, Eduardo Souza <ed...@gmail.com>
wrote:

> Hi,
>
> Is there any reason to not send the authentication header when downloading
> the maven-metadata.xml file in the deploy phase when the artifact is
> snapshot?
>
> Eduardo Souza
> eduardomatosouza@gmail.com
>


-- 
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy