You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sn...@apache.org on 2006/05/31 20:12:23 UTC

svn commit: r410621 - /maven/plugins/trunk/maven-ejb-plugin/src/site/apt/howto.apt

Author: snicoll
Date: Wed May 31 11:12:22 2006
New Revision: 410621

URL: http://svn.apache.org/viewvc?rev=410621&view=rev
Log:
MEJB-11: Updated documentation.

Modified:
    maven/plugins/trunk/maven-ejb-plugin/src/site/apt/howto.apt

Modified: maven/plugins/trunk/maven-ejb-plugin/src/site/apt/howto.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ejb-plugin/src/site/apt/howto.apt?rev=410621&r1=410620&r2=410621&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ejb-plugin/src/site/apt/howto.apt (original)
+++ maven/plugins/trunk/maven-ejb-plugin/src/site/apt/howto.apt Wed May 31 11:12:22 2006
@@ -4,13 +4,24 @@
  Stephane Nicoll
  <sn...@apache.org>
  ------
- September 25, 2005
+ May 31, 2006
 
 Introduction
 
-  The EJB plugin allows to package an EJB module. To generate the ejb-client
-  jar as well, you need to set the <generateClient> to true in the plugin's
-  configuration:
+  The EJB plugin allows to package an EJB module. It provides also the following
+  customization:
+
+  * Generation of ejb-client
+
+  * The ejb version to use
+
+  * Client inclusion and exclusion parameters
+
+
+Generating the client
+
+  To generate the ejb-client jar as well, you need to set the <generateClient> to
+  true in the plugin's configuration:
 
 +--------
   <build>
@@ -26,3 +37,46 @@
   </build>
 +---------
 
+Specifying the ejb version to use
+
+  In EJB3, the ejb-jar.xml deployment descriptor is not mandatory anymore. By default
+  the plugin uses the version 2.1. To use another version, configure the plugin as
+  follows:
+
++--------
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-ejb-plugin</artifactId>
+        <configuration>
+           <ejbVersion>3.0</ejbVersion>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
++---------
+
+Client inclusions and exclusions
+
+  The content of the ejb-client archive can be customized using inclusions and
+  exclusions. By default **/*Bean.class, **/*CMP.class, **/*Session.class and
+  **/package.html are excluded. To customize this, use clientExcludes and
+  clientIncludes element:
+
++--------
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-ejb-plugin</artifactId>
+        <configuration>
+           <clientIncludes>
+             <clientInclude>com/foo/bar/**</clientInclude>
+             <clientInclude>com/foo/acme/**</clientInclude>
+           </clientIncludes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
++---------