diff --git a/ejb/plugin.jelly b/ejb/plugin.jelly
index 5bfe3ceb..464024cd 100644
--- a/ejb/plugin.jelly
+++ b/ejb/plugin.jelly
@@ -2,7 +2,7 @@
-
+
-
+
+
@@ -43,9 +45,19 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
Building ejb ${maven.final.name}
@@ -134,27 +146,33 @@
-
-
-
-
-
+
+
-
+ index="${maven.ejb.client.index}"/>
+
-
+
+
+
+ DEPRECATED: You should use the ejb:ejb goal instead which automatically creates an ejb-client jar too.
+
+
+
+
-
+
+ DEPRECATED: You should use the ejb:install goal instead which automatically installs the ejb-client jar too.
+
@@ -162,17 +180,24 @@
-
+
+ description="Install the ejb files in the local repository">
-
+
+
+
@@ -203,6 +228,13 @@
type="ejb"
project="${pom}"
typeHandler="${ejbTypeHandler}"/>
+
+
+
@@ -222,14 +254,16 @@
-
+
+ DEPRECATED: You should use the ejb:deploy goal instead which automatically deploys the ejb-client jar too.
+
diff --git a/ejb/plugin.properties b/ejb/plugin.properties
index c16569ac..e44d9d71 100644
--- a/ejb/plugin.properties
+++ b/ejb/plugin.properties
@@ -1,5 +1,5 @@
# -------------------------------------------------------------------
-# Copyright 2001-2004 The Apache Software Foundation.
+# Copyright 2001-2005 The Apache Software Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -29,9 +29,14 @@ maven.ejb.src=${maven.src.dir}/ejb
# Location where the generated EJB will be placed.
maven.ejb.build.dir = ${maven.build.dir}
-# Name of the generated EJB file (without the path).
+# Name of the generated EJB file (without the path which is specified by
+# maven.ejb.build.dir).
maven.ejb.final.name = ${maven.final.name}.jar
+# Name fo the generated EJB client file (without the path which is specified by
+# maven.ejb.build.dir).
+maven.ejb.client.final.name = ${maven.final.name}-client.jar
+
# Location of ejb xml configs - not used atm due to using jar task not ejbjar
maven.ejb.descriptordir=${maven.ejb.src}/META-INF
@@ -46,3 +51,6 @@ maven.ejb.client.base.excludes=**/*Bean.class,**/*CMP.class,**/*Session.class
# Note: Files are relative to build.dir
maven.ejb.includes=**
maven.ejb.excludes=**/package.html
+
+# Decide whether a client jar is generated or not.
+maven.ejb.client.generate = true
diff --git a/ejb/project.xml b/ejb/project.xml
index 677930ab..dbc1a9e3 100644
--- a/ejb/project.xml
+++ b/ejb/project.xml
@@ -2,7 +2,7 @@