I have a project with 5 modules in maven. Right now, when I do a \"mvn clean install\", it generates an ear containing the two jars, one war and one sar from the other modules.<
You can achieve this by specifying the finalName property in your pom like this:
finalName
${project.artifactId}