Hello, here's y pom.xml for creating an ear... give it a try if it helps
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>root</groupId> <artifactId>project</artifactId> <version>1.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>ejb3-deploy</artifactId> <packaging>ear</packaging> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <configuration> <modules> <ejbModule> <groupId>root</groupId> <artifactId>ejbs</artifactId> <bundleFileName> ejb3-app-1.0-SNAPSHOT.par </bundleFileName> </ejbModule> <webModule> <groupId>root</groupId> <artifactId>web</artifactId> <bundleFileName> ejb3-web.war </bundleFileName> </webModule> <javaModule> <groupId>root</groupId> <artifactId>shared</artifactId> <bundleFileName>sharedlib.jar </bundleFileName> </javaModule> </modules> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>root</groupId> <artifactId>ejbs</artifactId> <version>1.0</version> <type>ejb</type> </dependency> <dependency> <groupId>root</groupId> <artifactId>shared</artifactId> <version>1.0</version> <type>jar</type> </dependency> <dependency> <groupId>root</groupId> <artifactId>web</artifactId> <version>1.0</version> <type>war</type> </dependency> </dependencies> </project>