diff --git a/ejb/plugin.jelly b/ejb/plugin.jelly
index f348aee9..ca10c1cc 100644
--- a/ejb/plugin.jelly
+++ b/ejb/plugin.jelly
@@ -106,6 +106,17 @@
+
+
+
+
+
+
+
+
diff --git a/ejb/plugin.properties b/ejb/plugin.properties
index 3f311e80..677662df 100644
--- a/ejb/plugin.properties
+++ b/ejb/plugin.properties
@@ -8,3 +8,7 @@ maven.ejb.src=${maven.src.dir}/ejb
# Location of ejb xml configs - not used atm due to using jar task not ejbjar
maven.ejb.descriptordir=${maven.ejb.src}/META-INF
maven.ejb.manifest=${maven.ejb.descriptordir}/MANIFEST.MF
+# Exclude from the client jar those things that should only exist on the EJB server.
+# This list is probably incomplete...
+# Users' projects can add to the list by setting maven.ejb.client.excludes.
+maven.ejb.client.base.excludes=**/*Bean.class,**/*CMP.class,**/*Session.class
diff --git a/ejb/xdocs/properties.xml b/ejb/xdocs/properties.xml
index 4f64dc6a..be86fa87 100644
--- a/ejb/xdocs/properties.xml
+++ b/ejb/xdocs/properties.xml
@@ -20,6 +20,26 @@
src/ejb
+
+ | maven.ejb.client.base.excludes |
+ Yes |
+
+ Classes excluded by default from a client ejb jar
+ |
+
+ **/*Bean.class,**/*CMP.class,**/*Session.class
+ |
+
+
+ | maven.ejb.client.excludes |
+ Yes |
+
+ Classes excluded from a client ejb jar
+ |
+
+ None
+ |
+
| maven.ejb.manifest |
Yes |