Listing 1

<!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
 'http://java.sun.com/dtd/connector_1_0.dtd'>
<connector>
   <display-name>Employee Info Connector</display-name>
   <vendor-name>SomeCompany</vendor-name>
   <spec-version>1.0</spec-version>
   <eis-type>EmployeeDB</eis-type>
   <version>1.0</version>
   <resourceadapter>

 <managedconnectionfactory-class>com.somecompany.connector.EmployeeInfoSPIManagedConnectionFactory<
 /managedconnectionfactory-class>
       <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
  <connectionfactory-impl-class>com.somecompany.connector.EmployeeInfoCCIConnectionFactory<
  /connectionfactory-impl-class>
       <connection-interface>javax.resource.cci.Connection</connection-interface>
       <connection-impl-class>com.somecompany.connector.EmployeeInfoCCIConnection</connection-impl-class>
       <transaction-support>NoTransaction</transaction-support>
       <config-property>
           <config-property-name>EisProductName</config-property-name>
           <config-property-type>java.lang.String</config-property-type>
           <config-property-value>Employee Info Connector</config-property-value>
       </config-property>
       <config-property>
           <config-property-name>EisProductVersion</config-property-name>
           <config-property-type>java.lang.String</config-property-type>
           <config-property-value>1.0</config-property-value>
       </config-property>
       <config-property>
           <config-property-name>UserName</config-property-name>
           <config-property-type>java.lang.String</config-property-type>
           <config-property-value>SomeCompanyUser</config-property-value>
       </config-property>
       <config-property>
           <config-property-name>MaxConnections</config-property-name>
           <config-property-type>java.lang.Integer</config-property-type>
           <config-property-value>10</config-property-value>
       </config-property>
       <reauthentication-support>false</reauthentication-support>
   </resourceadapter>
</connector>


Listing 2

<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<executions>
					<execution>
						<id>jarCreation</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

...

<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-rar-plugin</artifactId>
				<executions>
					<execution>
						<id>rarCreation</id>
						<goals>
							<goal>rar</goal>
						</goals>
						<configuration>
							<includeJar>false</includeJar>
						</configuration>
					</execution>
				</executions>
			</plugin>
                      <plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-pmd-plugin</artifactId>
			</plugin>
		</plugins>
	</build>


Listing 3

<project>
	<parent>
		<artifactId>EmployeeInfo</artifactId>
		<groupId>com.somecompany</groupId>
		<version>1.0</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>ejb</artifactId>
	<packaging>ejb</packaging>
	<name>ejb</name>
	<dependencies>
		<dependency>
			<groupId>geronimo-spec</groupId>
			<artifactId>geronimo-spec-ejb</artifactId>
			<version>1.0-M1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>geronimo-spec</groupId>
			<artifactId>geronimo-spec-j2ee-connector</artifactId>
			<version>1.0-M1</version>
			<scope>provided</scope>
		</dependency>
<dependency>
			<groupId>com.somecompany</groupId>
			<artifactId>connector</artifactId>
			<version>1.0</version>
		</dependency>
	</dependencies>

...

<build>
		<plugins>
			<plugin>
				<artifactId>maven-ejb-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
						</manifest>
					</archive>
					<generateClient>true</generateClient>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<version>2.0</version>
				<executions>
					<execution>
						<goals>
							<goal>cobertura</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>


Listing 4

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
 "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
   <enterprise-beans>
       <session>
           <ejb-name>EmployeeInfoEJB</ejb-name>
           <home>com.somecompany.ejb.GetEmployeeInfoHome</home>
           <remote>com.somecompany.ejb.GetEmployeeInfoRemote</remote>
           <ejb-class>com.somecompany.ejb.GetEmployeeInfoBean</ejb-class>
           <session-type>Stateless</session-type>
           <transaction-type>Container</transaction-type>
           <env-entry>
               <env-entry-name>ConnectionFactoryJNDIName</env-entry-name>
               <env-entry-type>java.lang.String</env-entry-type>
               <env-entry-value>com.somecompany.employeeinfo.connector</env-entry-value>
           </env-entry>
       </session>
   </enterprise-beans>
   <assembly-descriptor>
       <container-transaction>
           <method>
               <ejb-name>EmployeeInfoEJB</ejb-name>
               <method-name>*</method-name>
           </method>
           <trans-attribute>NotSupported</trans-attribute>
       </container-transaction>
   </assembly-descriptor>
</ejb-jar>



Listing 5

<project>
	<parent>
		<artifactId>EmployeeInfo</artifactId>
		<groupId>com.somecompany</groupId>
		<version>1.0</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<packaging>ear</packaging>
	<artifactId>employeeInfoEAR</artifactId>
	<name>employeeInfoEAR</name>
	<dependencies>
		<dependency>
     <groupId>com.somecompany</groupId>
     <artifactId>connector</artifactId>
     <version>${project.version}</version>
     <type>rar</type>
</dependency>
<dependency>
     <groupId>com.somecompany</groupId>
     <artifactId>ejb</artifactId>
     <version>${project.version}</version>
     <type>ejb</type>
</dependency>
<dependency>
     <groupId>com.somecompany</groupId>
     <artifactId>web</artifactId>
     <version>${project.version}</version>
     <type>war</type>
</dependency>
	</dependencies>

<build>
		<plugins>
			<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-ear-plugin</artifactId>
    <version>2.3</version>
    <configuration>
        <modules>
            <rarModule>
                <groupId>com.somecompany</groupId>
                <artifactId>connector</artifactId>
            </rarModule>
            <ejbModule>
                 <groupId>com.somecompany</groupId>
                 <artifactId>ejb</artifactId>
             </ejbModule>
             <webModule>
                 <groupId>com.somecompany</groupId>
                 <artifactId>web</artifactId>
                 <contextRoot>/employeeInfo</contextRoot>
                 <unpack>true</unpack>
              </webModule>
          </modules>
      </configuration>
</plugin>
		</plugins>
	</build>
</project>