norrisjeremy commented on PR #14:
URL: 
https://github.com/apache/maven-toolchains-plugin/pull/14#issuecomment-1963061427

   > > Wouldn't it be great if `settings.xml` could also be made optional by 
usage of env vars as well?
   > 
   > Settings are already interpolated so we can use env vars already, I'm 
using it locally with the following:
   > 
   > ```
   >     <mirror>
   >       <id>central</id>
   >       <mirrorOf>central</mirrorOf>
   >       <url>${env.MAVEN_CENTRAL}</url>
   >     </mirror>
   > ```
   > 
   > so that I can point to a mirror on my LAN when available.
   > 
   > Toolchains are also interpolated and env vars seems to be supported too 
fwiw.
   > 
   > So it's not really settings being optional, but it's easy to setup a 
project's settings.xml or toolchains.xml that just use env variables, wouldn't 
that work ?
   
   The point is to have a standard method by which Maven can detect specific 
env vars for this without having to explicitly write a `settings.xml` or 
`toolchains.xml`, as it is an inconvenience to both generate and maintain these 
files.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to