I am using maven2 with a struts-hibernate Java EE project and developing with myEclipse.
When I run a maven build, clean&install, it generates myProject.ear under the myProject_ear\target folder as usual. However, I have to copy this ear file from that folder to the ..jboss-4.2.2.GA_2\server\default\deploy folder in order to deploy, and again turn back to eclipse and start the server.
It is because of my project has not a standard Java EE skeleton I think. However, if there is a way to tell maven to deploy my ear under the ..\deploy folder of jboss automatically, I would be glad to hear that.
If this is during development, my suggestion would be to use the WTP support and to Run [your project] on Server. And if for whatever reason you cannot use the WTP, then my second suggestion would be to use the JBoss Maven Plugin and the following goals:
From the examples: