@Singleton @Named public class DefaultMavenPluginManagerHelper extends Object implements MavenPluginManagerHelper
DefaultMavenPluginManagerHelper class.
Constructor and Description |
---|
DefaultMavenPluginManagerHelper(org.apache.maven.plugin.MavenPluginManager mavenPluginManager) |
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) |
@Inject public DefaultMavenPluginManagerHelper(org.apache.maven.plugin.MavenPluginManager mavenPluginManager)
public 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)
getPluginDescriptor
in interface MavenPluginManagerHelper
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 descriptorpublic void 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)
setupPluginRealm
in interface MavenPluginManagerHelper
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.