Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

useConfigFile now used as fall-back if settings exists, but server is… #280

Closed
wants to merge 1 commit into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Oct 8, 2016

If a settings.xml file is found, but no appropriate <server> is found, the useConfigFile parameter was skipped.

This request allows the check for useConfigFile to be used as a "last-ditch" for authentication.

@vromero
Copy link

vromero commented Apr 14, 2017

Without this, useConfigFile is almost useless.
Any chance this could be reviewed?

@ghost
Copy link
Author

ghost commented Apr 14, 2017

@vromero I see your point - yes, it does pretty much render it useless.

Reflecting on it a bit, looking at the original commit (and searching my rusty memory), there is a purpose: if you have a configFile, but don't want to use it (for various reaons), then the flag prevents it from happening. Thus it's not simply gated on the existence of the file.

@vromero
Copy link

vromero commented Apr 14, 2017

I see. I think it would be fair to say that the ideal behavior should be to look both in the settings.xml and in the file (that could be manually disabled), or having two flags: useMavenSettings useConfigFile (although this would be trickier because require more changes) for people that have invalid credentials in the settings for whatever reason, and want to force the use of the file.

@mattnworb
Copy link
Member

Thanks for the PR, but in #339 we will be making the docker config file always be used if it exists, as that seems more definitive and a better source of this configuration information than the maven pom.

@mattnworb mattnworb closed this Jun 7, 2017
@ghost
Copy link
Author

ghost commented Jun 7, 2017

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants