You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dominique Comte <do...@gmail.com> on 2023/02/18 22:02:49 UTC

Artifact Resolver configuration documentation - server.xml ?

Hi,

The page https://maven.apache.org/resolver/configuration.html mentions at the very end a “server.xml” file:

Sometimes Maven uses different default values than the Maven Resolver itself or tries to extract certain values from the server.xml. For details refer to https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java.

But the linked source file only reads “settings.xml” on line 175.
Is that a documentation mistake ? I cannot find a mention of a “server.xml” file anywhere else in the configuration pages of Maven.


Regards,
Dominique

Re: Artifact Resolver configuration documentation - server.xml ?

Posted by Konrad Windszus <kw...@apache.org>.
Thanks for the pointer, fixed in https://github.com/apache/maven-resolver/commit/18a16c8313ccef934301d56696254cf4f9962410.

Konrad

On 2023/02/19 17:29:31 Tamás Cservenák wrote:
> Yup,
> 
> Is mistake, it meant settings.xml, not server.xml.
> 
> Hth
> T
> 
> On Sun, Feb 19, 2023, 16:58 Dominique Comte <do...@gmail.com>
> wrote:
> 
> > Hi,
> >
> > The page https://maven.apache.org/resolver/configuration.html mentions at
> > the very end a “server.xml” file:
> >
> > Sometimes Maven uses different default values than the Maven Resolver
> > itself or tries to extract certain values from the server.xml. For details
> > refer to
> > https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
> > .
> >
> > But the linked source file only reads “settings.xml” on line 175.
> > Is that a documentation mistake ? I cannot find a mention of a
> > “server.xml” file anywhere else in the configuration pages of Maven.
> >
> >
> > Regards,
> > Dominique
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Artifact Resolver configuration documentation - server.xml ?

Posted by Tamás Cservenák <ta...@cservenak.net>.
Yup,

Is mistake, it meant settings.xml, not server.xml.

Hth
T

On Sun, Feb 19, 2023, 16:58 Dominique Comte <do...@gmail.com>
wrote:

> Hi,
>
> The page https://maven.apache.org/resolver/configuration.html mentions at
> the very end a “server.xml” file:
>
> Sometimes Maven uses different default values than the Maven Resolver
> itself or tries to extract certain values from the server.xml. For details
> refer to
> https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
> .
>
> But the linked source file only reads “settings.xml” on line 175.
> Is that a documentation mistake ? I cannot find a mention of a
> “server.xml” file anywhere else in the configuration pages of Maven.
>
>
> Regards,
> Dominique