1 package org.apache.maven.plugin;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.artifact.repository.ArtifactRepository;
23 import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
24 import org.apache.maven.artifact.resolver.ArtifactResolutionException;
25 import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
26 import org.apache.maven.execution.MavenSession;
27 import org.apache.maven.model.Plugin;
28 import org.apache.maven.plugin.descriptor.PluginDescriptor;
29 import org.apache.maven.plugin.version.PluginVersionNotFoundException;
30 import org.apache.maven.plugin.version.PluginVersionResolutionException;
31 import org.apache.maven.project.MavenProject;
32 import org.apache.maven.project.artifact.InvalidDependencyVersionException;
33 import org.apache.maven.settings.Settings;
34 import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
35
36 import java.util.Map;
37
38
39
40
41 @Deprecated
42 public interface PluginManager
43 {
44 String ROLE = PluginManager.class.getName();
45
46 void executeMojo( MavenProject project, MojoExecution execution, MavenSession session )
47 throws MojoExecutionException, ArtifactResolutionException, MojoFailureException, ArtifactNotFoundException,
48 InvalidDependencyVersionException, PluginManagerException, PluginConfigurationException;
49
50 PluginDescriptor getPluginDescriptorForPrefix( String prefix );
51
52 Plugin getPluginDefinitionForPrefix( String prefix, MavenSession session, MavenProject project );
53
54 PluginDescriptor verifyPlugin( Plugin plugin, MavenProject project, Settings settings,
55 ArtifactRepository localRepository )
56 throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException,
57 InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException,
58 PluginVersionNotFoundException;
59
60 Object getPluginComponent( Plugin plugin, String role, String roleHint )
61 throws PluginManagerException, ComponentLookupException;
62
63 Map<String, Object> getPluginComponents( Plugin plugin, String role )
64 throws ComponentLookupException, PluginManagerException;
65
66
67
68
69 PluginDescriptor loadPluginDescriptor( Plugin plugin, MavenProject project, MavenSession session )
70 throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException,
71 InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException,
72 PluginVersionNotFoundException;
73
74
75
76
77 PluginDescriptor loadPluginFully( Plugin plugin, MavenProject project, MavenSession session )
78 throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException,
79 InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException,
80 PluginVersionNotFoundException;
81
82 }