If you're using JBoss's Seam framework, this post by Kasper Sørensen illustrates how to use Apache Maven along with Seam, EJBs and EAR-packaging. Read Kasper Sørensen post 'Seam, EJB's and EAR-packaging in Maven': http://kasper.eobjects.dk/2009/04/seam-ejbs-and-ear-packaging-in-maven.html