I am using maven2 with a Java EE project with struts-hibernate support and developing with myEclipse. When I run maven build, clean & install, it generates myProject.ear in the myProject_ear \ target folder, as usual. However, I have to copy this ear file from this folder to the folder ..jboss-4.2.2.GA_2 \ server \ default \ deploy in order to deploy, and again go back to eclipse and start the server.
This is because my project does not have a standard Java EE skeleton, I think. However, if there is a way to tell maven to deploy my ear in the .. \ deploy jboss folder automatically, I would be happy to hear that.
source share