org.apache.maven.reporting.exec
Class DefaultMavenPluginManagerHelper

java.lang.Object
  extended by org.apache.maven.reporting.exec.DefaultMavenPluginManagerHelper
All Implemented Interfaces:
MavenPluginManagerHelper

@Component(role=MavenPluginManagerHelper.class)
public class DefaultMavenPluginManagerHelper
extends Object
implements MavenPluginManagerHelper

MavenPluginManager helper to deal with API changes between Maven 3.0.x and 3.1.x, ie switch from Sonatype Aether (in org.sonatype.aether package) to Eclipse Aether (in org.eclipse.aether package).

Since:
1.1
Author:
Hervé Boutemy

Field Summary
protected  MavenPluginManager mavenPluginManager
           
 
Constructor Summary
DefaultMavenPluginManagerHelper()
           
 
Method Summary
 PluginDescriptor getPluginDescriptor(Plugin plugin, List<org.sonatype.aether.repository.RemoteRepository> repositories, MavenSession session)
           
 void setupPluginRealm(PluginDescriptor pluginDescriptor, MavenSession session, ClassLoader parent, List<String> imports, List<String> excludeArtifactIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mavenPluginManager

@Requirement
protected MavenPluginManager mavenPluginManager
Constructor Detail

DefaultMavenPluginManagerHelper

public DefaultMavenPluginManagerHelper()
Method Detail

getPluginDescriptor

public PluginDescriptor getPluginDescriptor(Plugin plugin,
                                            List<org.sonatype.aether.repository.RemoteRepository> repositories,
                                            MavenSession session)
                                     throws PluginResolutionException,
                                            PluginDescriptorParsingException,
                                            InvalidPluginDescriptorException
Specified by:
getPluginDescriptor in interface MavenPluginManagerHelper
Throws:
PluginResolutionException
PluginDescriptorParsingException
InvalidPluginDescriptorException

setupPluginRealm

public void setupPluginRealm(PluginDescriptor pluginDescriptor,
                             MavenSession session,
                             ClassLoader parent,
                             List<String> imports,
                             List<String> excludeArtifactIds)
                      throws PluginResolutionException,
                             PluginContainerException
Specified by:
setupPluginRealm in interface MavenPluginManagerHelper
Throws:
PluginResolutionException
PluginContainerException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.