public interface 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) for some parameters.Modifier and Type | Method and Description |
---|---|
org.apache.maven.plugin.descriptor.PluginDescriptor |
getPluginDescriptor(org.apache.maven.model.Plugin plugin,
org.apache.maven.execution.MavenSession session)
Helper for
MavenPluginManager#getPluginDescriptor(Plugin, List, xxx.aether.RepositorySystemSession) |
void |
setupPluginRealm(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor,
org.apache.maven.execution.MavenSession session,
ClassLoader parent,
List<String> imports,
List<String> excludeArtifactIds)
Helper for
MavenPluginManager#setupPluginRealm(PluginDescriptor, ..., List, xxx.aether.graph.DependencyFilter) |
org.apache.maven.plugin.descriptor.PluginDescriptor getPluginDescriptor(org.apache.maven.model.Plugin plugin, org.apache.maven.execution.MavenSession session) throws org.apache.maven.plugin.PluginResolutionException, org.apache.maven.plugin.PluginDescriptorParsingException, org.apache.maven.plugin.InvalidPluginDescriptorException
MavenPluginManager#getPluginDescriptor(Plugin, List, xxx.aether.RepositorySystemSession)
plugin
- the pluginsession
- the sessionorg.apache.maven.plugin.PluginResolutionException
- on resolution issueorg.apache.maven.plugin.PluginDescriptorParsingException
- on descriptor parsing issueorg.apache.maven.plugin.InvalidPluginDescriptorException
- on invalid descriptorvoid setupPluginRealm(org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor, org.apache.maven.execution.MavenSession session, ClassLoader parent, List<String> imports, List<String> excludeArtifactIds) throws org.apache.maven.plugin.PluginResolutionException, org.apache.maven.plugin.PluginContainerException
MavenPluginManager#setupPluginRealm(PluginDescriptor, ..., List, xxx.aether.graph.DependencyFilter)
pluginDescriptor
- the plugin descriptorsession
- the sessionparent
- the parent classloaderimports
- classloader importsexcludeArtifactIds
- artifacts excluded from classloaderorg.apache.maven.plugin.PluginResolutionException
- on resolution issueorg.apache.maven.plugin.PluginContainerException
- on issue with configurationCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.