Closed OndraZizka closed 9 years ago
Hmm, just tried mvn "jboss-as:deploy" and it seems that it redeploys too - EAP 6.1 did stop, redeploy, start the app. Interesting. Not documented.
Ah, so it just stopped and started, but the app remained the same. So :deploy didn't fail although it should.
Using deploy
on an already deployed application should result in a redeploy unless the force
property is set to false
. If the deployed application didn't change, that is an issue though.
Yes, that's what happened. The app remained the same. Even after undeploying and deploying (and I checked that the app is gone in the CLI).
After I deleted the temporary files from EAP, it started working again. Seems like EAP bug. I will try with latest EAP and WildFly.
Cleaning up issues and I think this should be solved.
In most scenarios, the user doesn't care if the app is or is not there. He just wants to have an app deployed.
Having to keep in mind whether to use :deploy or :redeploy is quite unpleasant.
Adding a parameter "force" to :redeploy would help.
:deploy already has "force" but AFAIK that doesn't overdeploy the app, just doesn't fail and keeps the old one. Or at least that's how it sounds from the docs:
"If force mode is disabled, the deploy goal will cause a build failure if the application being deployed already exists." http://docs.jboss.org/jbossas/7/plugins/maven/latest/deploy-mojo.html