From 828db37251c31eae748b76161c26ccc217f76a54 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Fri, 14 Aug 2009 22:48:46 +0000 Subject: [PATCH] o Restored methods for backward compat (e.g. with maven-enforcer-plugin) git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@804403 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/execution/MavenSession.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java b/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java index 54a0210148..f601ce78b2 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java +++ b/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java @@ -34,6 +34,7 @@ import org.apache.maven.project.MavenProject; import org.apache.maven.project.ProjectBuildingRequest; import org.apache.maven.settings.Settings; import org.codehaus.plexus.PlexusContainer; +import org.codehaus.plexus.component.repository.exception.ComponentLookupException; /** * @author Jason van Zyl @@ -102,6 +103,34 @@ public class MavenSession return container; } + @Deprecated + public Object lookup( String role ) + throws ComponentLookupException + { + return container.lookup( role ); + } + + @Deprecated + public Object lookup( String role, String roleHint ) + throws ComponentLookupException + { + return container.lookup( role, roleHint ); + } + + @Deprecated + public List lookupList( String role ) + throws ComponentLookupException + { + return container.lookupList( role ); + } + + @Deprecated + public Map lookupMap( String role ) + throws ComponentLookupException + { + return container.lookupMap( role ); + } + public RepositoryCache getRepositoryCache() { return request.getRepositoryCache();