Listing 1

<project>
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.somecompany.apapters</groupId>
     <artifactId>jcaAdapter</artifactId>
     <version>1.0</version>
     <packaging>rar</packaging>
     <dependencies>
          <dependency>
               <groupId>junit</groupId>
               <artifactId>junit</artifactId>
                <version>3.8.1</version>
                <scope>test</scope>
          </dependency>
          <dependency>
               <groupId>geronimo-spec</groupId>
              <artifactId>geronimo-spec-j2ee-connector</artifactId>
              <version>1.0-M1</version>
              <scope>provided</scope>
         </dependency>
     </dependencies>
     <build>
         <plugins>
              <plugin>

<groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-jar-plugin</artifactId>
                   <executions>
                          <execution>
			<id>jarCreation</id>
                          	<phase>package</phase>
			<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>
                       <phase>package</phase>
                       <goals>

			  <goal>rar</goal>
                        </goals>
                        <configuration>
                              <includeJar>true</includeJar>
                         </configuration>
                  </execution>
              </executions>
         </plugin>
      </plugins>
    </build>
</project>


Listing 2

<repositories>
		<repository>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>central</id>
			<name>Maven Central Repository</name>
			<url>http://repo1.maven.org/maven2</url>
		</repository>
		<repository>
			<id>codehaus </id>
			<name> Codehaus Maven Repository</name>
			<url>http://repository.codehaus.org/</url>
		</repository>
		<repository>
			<id>xyzCompany</id>
			<name>XYZ Company Maven Repository</name>
			<url>http://intranet.xyz.com/repository/</url>
		</repository>
</repositories>