org.apache.maven.repository.internal
类 MavenRepositorySystemUtils

java.lang.Object
  extended by org.apache.maven.repository.internal.MavenRepositorySystemUtils

public final class MavenRepositorySystemUtils
extends Object

一个实用程序类,用于帮助设置类似 Maven 的存储库系统。注意:此组件旨在帮助那些在 IoC 容器之外使用存储库系统的客户端,Maven 插件应始终使用常规依赖注入来获取存储库系统。

作者:
本杰明·本特曼

方法总结
static org.eclipse.aether.impl.DefaultServiceLocator newServiceLocator()
          创建一个新的服务定位器,它已经知道此库中包含的所有服务实现。
static org.eclipse.aether.DefaultRepositorySystemSession newSession()
          通过使用基于 Maven 的解析的典型值初始化会话,创建一个新的类似 Maven 的存储库系统会话。
 
从类 java.lang 继承的方法。目的
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详情

新服务定位器

public static org.eclipse.aether.impl.DefaultServiceLocator newServiceLocator()
创建一个新的服务定位器,它已经知道此库中包含的所有服务实现。要获得完整的存储库系统,客户端需要添加一些存储库连接器以进行远程传输。

回报:
新的服务定位器,从不null

新会话

public static org.eclipse.aether.DefaultRepositorySystemSession newSession()
通过使用基于 Maven 的解析的典型值初始化会话,创建一个新的类似 Maven 的存储库系统会话。更详细地说,此方法配置与依赖图处理相关的设置,大多数其他设置保持其通用默认值。使用各种设置器进一步配置会话,其中包含您的环境所需的身份验证、镜像、代理和其他信息。

回报:
新的存储库系统会话,从不null


版权所有 © 2001–2013 Apache 软件基金会。版权所有。