Question

I have a "mavenized" EAR project like this:

  • PARENT
    • EAR
    • EJB
    • WEB

The problem is that I have to do

mvn clean package

on PARENT project every time I want to deploy. Just after this, I get the EAR and do

mvn glassfish:deploy

on a running Glassfish instance.


All this process is a bit hassle in development environment!

I just want to know if there is a faster way to work with EJB, Maven and Glassfish, like deploying target contents without the need of packaging EAR.

PS: I'm already using "jrebel-maven-plugin" that does hot-deploy ONLY when EAR was initially deployed.

Was it helpful?

Solution

Michel, why don't you deploy your app from your IDE? I understand that it may take a bit more time to configure development environment, but it really worth the effort. I truly enjoy configuration: Eclipse + m2eclipse + Java EE server.

Download Eclipse for Java EE developers, add plugin m2eclipse(included in Eclipse Juno), import your project as maven project, add application server to eclipse, and run your app on it. Application will be deployed on server by default as exploded archive in less than 10s, what should be huge improvement for you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top