[
http://issues.ops4j.org/browse/PAXURL-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14062#action_14062
]
Stephane Chomat commented on PAXURL-115:
----------------------------------------
we can use this method to configure mirros in aether lib.
{code:title=DefaultProxySelector.java (aether)|borderStyle=solid}
/**
* Adds the specified mirror to this selector.
*
* @param id The identifier of the mirror, must not be {@code null}.
* @param url The URL of the mirror, must not be {@code null}.
* @param type The content type of the mirror, must not be {@code null}.
* @param repositoryManager A flag whether the mirror is a repository
manager or a simple server.
* @param mirrorOfIds The identifier(s) of remote repositories to mirror,
must not be {@code null}. Multiple
* identifiers can be separated by comma and additionally the
wildcards "*" and "external:*" can be used
* to match all (external) repositories, prefixing a repo id
with an exclamation mark allows to express
* an exclusion. For example "external:*,!central".
* @param mirrorOfTypes The content type(s) of remote repositories to
mirror, may be {@code null} or empty to match
* any content type. Similar to the repo id specification,
multiple types can be comma-separated, the
* wildcard "*" and the "!" negation syntax are supported. For
example "*,!p2".
* @return This selector for chaining, never {@code null}.
*/
public DefaultMirrorSelector add( String id, String url, String type,
boolean repositoryManager,
String mirrorOfIds, String mirrorOfTypes )
{
mirrors.add( new MirrorDef( id, url, type, repositoryManager,
mirrorOfIds, mirrorOfTypes ) );
return this;
}
{code}
> Configure aether module wich setting information for proxies and mirrors.
> -------------------------------------------------------------------------
>
> Key: PAXURL-115
> URL: http://issues.ops4j.org/browse/PAXURL-115
> Project: Pax URL
> Issue Type: Improvement
> Components: aether
> Reporter: Stephane Chomat
> Assignee: Stephane Chomat
> Fix For: 1.2.6
>
>
> The setting.xml can have some proxy or/and mirror informations and ather
> library support it. But the handler aether don't use it to configure the
> aether session.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general