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,
46 Throwable e )
47 {
48 super( mojoDescriptor, message, e );
49
50 this.pluginRealm = pluginRealm;
51 }
52
53 public PluginContainerException( MojoDescriptor mojoDescriptor, ClassRealm pluginRealm, String message,
54 ComponentLookupException e )
55 {
56 super( mojoDescriptor, message, e );
57
58 this.pluginRealm = pluginRealm;
59 }
60
61 public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message, Throwable e )
62 {
63 super( plugin, message, e );
64
65 this.pluginRealm = pluginRealm;
66 }
67
68 public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message,
69 PlexusConfigurationException e )
70 {
71 super( plugin, message, e );
72
73 this.pluginRealm = pluginRealm;
74 }
75
76 public PluginContainerException( Plugin plugin, ClassRealm pluginRealm, String message,
77 ComponentRepositoryException e )
78 {
79 super( plugin, message, e );
80
81 this.pluginRealm = pluginRealm;
82 }
83
84 public ClassRealm getPluginRealm()
85 {
86 return pluginRealm;
87 }
88 }