1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.plugin;
20
21 import org.apache.maven.model.Plugin;
22 import org.apache.maven.plugin.descriptor.MojoDescriptor;
23 import org.codehaus.plexus.classworlds.realm.ClassRealm;
24 import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
25 import org.codehaus.plexus.component.repository.exception.ComponentRepositoryException;
26 import org.codehaus.plexus.configuration.PlexusConfigurationException;
27
28
29
30
31
32
33
34
35
36
37
38 public class PluginContainerException extends PluginManagerException {
39
40 private ClassRealm pluginRealm;
41
42 public PluginContainerException(
43 MojoDescriptor mojoDescriptor, ClassRealm pluginRealm, String message, Throwable e) {
44 super(mojoDescriptor, message, e);
45
46 this.pluginRealm = pluginRealm;
47 }
48
49 public PluginContainerException(
50 MojoDescriptor mojoDescriptor, ClassRealm pluginRealm, String message, ComponentLookupException e) {
51 super(mojoDescriptor, message, e);
52
53 this.pluginRealm = pluginRealm;
54 }
55
56 public PluginContainerException(Plugin plugin, ClassRealm pluginRealm, String message, Throwable e) {
57 super(plugin, message, e);
58
59 this.pluginRealm = pluginRealm;
60 }
61
62 public PluginContainerException(
63 Plugin plugin, ClassRealm pluginRealm, String message, PlexusConfigurationException e) {
64 super(plugin, message, e);
65
66 this.pluginRealm = pluginRealm;
67 }
68
69 public PluginContainerException(
70 Plugin plugin, ClassRealm pluginRealm, String message, ComponentRepositoryException e) {
71 super(plugin, message, e);
72
73 this.pluginRealm = pluginRealm;
74 }
75
76 public ClassRealm getPluginRealm() {
77 return pluginRealm;
78 }
79 }