Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hot Deploy EAR – (Netbeans 8.0.2 / Wildfly 9.0.1 / Maven 3.3.3)

Is there a procedure for hot deploying an ear file on Wildfly using Netbeans (8.0.2)? My current build process (one command)

mvn clean package wildfly:deploy

is killing me (4/5 builds/cigarettes per hour, 3 mins a build).

I've searched and searched the web and heard people talking about 3 millisecond deployments (which I can only dream of), hot deployments “out of the box” using Netbeans (compile on save) and adding auto-deploy-exploded="true" to the deployment-scanner in the wildfly configuration file.

But I still haven't got it. My build sends my deployment to the wildfly standalone/tmp folder. Not to standalone/deployment where I reckon the deployment-scanner is looking.

What's a common setup people are employing to perform builds in Netbeans/Maven/Wildfly?

Many thanks.

like image 423
Quantum Avatar asked Dec 11 '25 20:12

Quantum


1 Answers

I decided to give JRebel a try. Had some issues using it with Wildfly 9.0.1.Final (maybe it's not fully supported just yet), so reverted back to Wildfly 8.2.1.Final. Works a treat. I can now change my XHTML files, CSS files, Java code (in WAR & EJB Modules of EAR) and my changes are reflected by a simple Browser refesh. I guess it's goodbye to multiple builds and wasted time.

like image 133
Quantum Avatar answered Dec 13 '25 10:12

Quantum



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!