You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alix Lourme (JIRA)" <ji...@codehaus.org> on 2011/01/24 10:45:57 UTC
[jira] Created: (MNG-4993) Servers config in settings.xml -
multiple id declaration for same URL repository
Servers config in settings.xml - multiple id declaration for same URL repository
--------------------------------------------------------------------------------
Key: MNG-4993
URL: http://jira.codehaus.org/browse/MNG-4993
Project: Maven 2 & 3
Issue Type: Improvement
Components: Settings
Affects Versions: 3.0.2, 2.2.1
Reporter: Alix Lourme
Priority: Minor
In some cases (ex : in a company), we can have multiple repository mirrors on same url in file _settings.xml_ (in function of library's typology) :
* http://mycompany.com/archiva/repository/company-releases
* http://mycompany.com/archiva/repository/company-snapshot
* http://mycompany.com/archiva/repository/commercial-libs
* http://mycompany.com/archiva/repository/extra-libs
* http://mycompany.com/archiva/repository/proxied-releases
* etc ...
If _mycompany.com_ can be accessed in https, we must have many server tag configuration (based on [servers|http://maven.apache.org/settings.html#Servers] and [encryption|http://maven.apache.org/guides/mini/guide-encryption.html] config).
Exmple of _settings.xml_ :
{code}
<?xml version="1.0" encoding="ISO-8859-1"?>
<settings>
<!-- ... -->
<servers>
<server>
<id>company-releases</id>
<username>my_login</username>
<password>{...password_encrypted...=}</password>
</server>
<server>
<id>company-snapshots</id>
<username>my_login</username>
<password>{...password_encrypted...=}</password>
</server>
<server>
<id>commercial-libs</id>
<username>my_login</username>
<password>{...password_encrypted...=}</password>
</server>
<!-- Other server config -->
</servers>
<!-- ... -->
{code}
To avoid multiple declarations, it will be great to rationalize server configuration for same login.
Some way :
1) Ids separated by coma :
{code}
<?xml version="1.0" encoding="ISO-8859-1"?>
<settings>
<!-- ... -->
<servers>
<server>
<id>company-releases,company-snapshots,commercial-libs</id>
<username>my_login</username>
<password>{...password_encrypted...=}</password>
</server>
<!-- All repository on same url, so 1 https config is ok -->
</servers>
<!-- ... -->
{code}
2) The best, but with xsd update :
{code}
<?xml version="1.0" encoding="ISO-8859-1"?>
<settings>
<!-- ... -->
<servers>
<server>
<ids>
<id>company-releases</id>
<id>company-snapshots</id>
<id>commercial-libs</id>
</ids>
<username>my_login</username>
<password>{...password_encrypted...=}</password>
</server>
<!-- All repository on same url, so 1 https config is ok -->
</servers>
<!-- ... -->
{code}
Thanks in advance.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira