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.model.Plugin;
23 import org.apache.maven.plugin.descriptor.MojoDescriptor;
24 import org.codehaus.plexus.classworlds.realm.ClassRealm;
25 import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
26 import org.codehaus.plexus.component.repository.exception.ComponentRepositoryException;
27 import org.codehaus.plexus.configuration.PlexusConfigurationException;
28
29
30
31
32
33
34
35
36
37
38
39 public class PluginContainerException
40 extends PluginManagerException
41 {
42
43 private ClassRealm pluginRealm;
44
45 public PluginContainerException( MojoDescriptor mojoDescriptor, ClassRealm pluginRealm, String message, Throwable e )
46 {
47 super( mojoDescriptor, message, e );
48
49 this.pluginRealm = pluginRealm;
50 }
51
52 public PluginContainerException( MojoDescriptor mojoDescriptor, ClassRealm pluginRealm, String message,
53 ComponentLookupException e )
54 {
55 super( mojoDescriptor, message, e );
56
57 this.pluginRealm = pluginRealm;
58 }
59
60 public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message, Throwable e )
61 {
62 super( plugin, message, e );
63
64 this.pluginRealm = pluginRealm;
65 }
66
67 public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message,
68 PlexusConfigurationException e )
69 {
70 super( plugin, message, e );
71
72 this.pluginRealm = pluginRealm;
73 }
74
75 public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message,
76 ComponentRepositoryException e )
77 {
78 super( plugin, message, e );
79
80 this.pluginRealm = pluginRealm;
81 }
82
83 public ClassRealm getPluginRealm()
84 {
85 return pluginRealm;
86 }
87 }