This post originated from an RSS feed registered with Java Buzz
by Vineet Manohar.
Original Post: Maven Cargo JBoss
Feed Title: Vineet Manohar's blog
Feed URL: http://www.vineetmanohar.com/category/java/feed/
Feed Description: Cutting edge Java articles, Web 2.0 and other Tech topics
This article shows how to deploy your war to JBoss using maven and cargo. It also shows how to integration test your JBoss applications using selenium by automatically deploying the war, running the tests and then automatically undeploying the war. All using maven, selenium and cargo!
It is a good practice to startup JBoss outside the scope of maven and use cargo to redeploy your app. Cargo uses the jmx-console over http to deploy and no file path configuration is needed! This only works with JBoss running locally as a file: reference to the war file is passed over http.
See articles for details and code snippets.