[
https://jira.codehaus.org/browse/CONTINUUM-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364262#comment-364262
]
Brent N Atkinson commented on CONTINUUM-2578:
---------------------------------------------
After doing more investigating, this appears to have been taken care of in
r475457 when the {{CreateProjectsFromMetadataAction}} was made settings-aware.
I tested adding projects with and without a settings file after making some
small logging some improvements and saw the following behavior:
With a settings.xml containing a relevant server configuration:
{noformat}
2015-02-28 14:41:38,236 INFO [qtp1080187003-51]
action#create-projects-from-metadata - consulting settings for credentials to
svn.apache.org
2015-02-28 14:41:38,236 INFO [qtp1080187003-51]
action#create-projects-from-metadata - credentials found in settings, will
fetch metadata as exampleuser
{noformat}
Without a settings.xml file:
{noformat}
2015-02-28 14:45:58,872 INFO [qtp1080187003-52]
action#create-projects-from-metadata - consulting settings for credentials to
svn.apache.org
2015-02-28 14:45:58,872 INFO [qtp1080187003-52]
action#create-projects-from-metadata - credentials not found for server
svn.apache.org
{noformat}
I verified that the credentials are indeed being set for the HTTP fetch as
well.
> Consult settings.xml for credentials when fetching maven metadata
> -----------------------------------------------------------------
>
> Key: CONTINUUM-2578
> URL: https://jira.codehaus.org/browse/CONTINUUM-2578
> Project: Continuum
> Issue Type: New Feature
> Reporter: Luca
> Assignee: Brent N Atkinson
> Fix For: 1.5.0
>
> Attachments: configure-scm-credentials-from-settings.diff
>
>
> The attached patch is to configure the scm username/password from
> settings.xml when building a project from a pom file. It attempts to match
> the SCM server host name to the id of a server in the <servers> section.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)