mirror of https://github.com/apache/maven.git
fixed wrong explanations: repository system is a Plexus component to use instead of MavenServiceLocator, repository system session can be injected as plugin parameter
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1391818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
12632512dd
commit
7f0def1f90
|
@ -43,8 +43,13 @@ import org.sonatype.aether.util.repository.DefaultProxySelector;
|
|||
|
||||
/**
|
||||
* A simplistic repository system session that mimics Maven's behavior to help third-party developers that want to embed
|
||||
* Maven's dependency resolution into their own applications. <strong>Warning:</strong> This class is not intended for
|
||||
* usage by Maven plugins, those should always acquire the current repository system session via parameter injection.
|
||||
* Maven's dependency resolution into their own applications.
|
||||
*
|
||||
* <p><strong>Warning:</strong> This class is not intended for
|
||||
* usage by Maven plugins, those should always acquire the current repository system session via
|
||||
* <a href="/ref/current/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html">plugin
|
||||
* parameter injection</a>, since the current repository system session is created by Maven in
|
||||
* <code><a href="/ref/current/maven-core/apidocs/org/apache/maven/DefaultMaven.html">DefaultMaven.newRepositorySession(MavenExecutionRequest request)</a></code>.</p>
|
||||
*
|
||||
* @author Benjamin Bentmann
|
||||
*/
|
||||
|
|
|
@ -30,10 +30,8 @@ import org.sonatype.aether.impl.VersionResolver;
|
|||
* repository system, clients need to add some repository connectors for remote transfers.
|
||||
*
|
||||
* <em>Note:</em> This component is meant to assist those clients that employ the repository systems outside of an IoC
|
||||
* container, Maven plugins should instead always use
|
||||
* <a href="/ref/current/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html">regular
|
||||
* plugin parameter injection</a> to acquire the repository system (created by Maven in
|
||||
* <code><a href="/ref/current/maven-core/apidocs/org/apache/maven/DefaultMaven.html">DefaultMaven.newRepositorySession(MavenExecutionRequest request)</a></code>).
|
||||
* container, Maven plugins should instead always use regular dependency injection to acquire the repository system:
|
||||
* it is defined as Plexus component in aether-impl with its dependencies.
|
||||
*
|
||||
* @author Benjamin Bentmann
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue