February 25, 2008 at 8:30 PM
I was working on a project where we were using maven 2 as build tool. Later on we decided to deploy our application on the Jboss 4 server.
So, to make the things simple we used jboss-maven-plugin to deploy the application on Jboss server.
Steps to deploy your application on Jboss using maven 2:
Add the following code into pom.xml file
Modify the Jboss home settings:
To deploy the application run the following command:
About harddeploy feature of Maven 2:
In case you want to just copy the war file into jboss deploy directory then you can use the following command:
And maven will copy the war file into deploy directory of Jboss application server.