Alex Rivera | Logout

How to deploy WAR of Maven Project to JBoss server from Eclipse?

Asked 2011-04-30T14:58:16.630
21

I want to deploy WAR of Maven project to JBoss server. I know that from Eclipse Export->War deploy the WAR file to JBoss. But How can I do this for Maven Project.

I have added

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jboss-maven-plugin</artifactId>
    <version>1.5.0</version>
    <configuration>
        <jbossHome>/home/tanmoy/Jboss</jbossHome>
        <serverName>all</serverName>
        <fileName>target/LoginExample-1.0.war</fileName>
    </configuration>
</plugin>

To my pom.xml and import again as maven project, but on right clicking into pom.xml for Run As I don't see any option for deployment.

Edit
Report

1 Answer

0

Use the following goals to deploy your war in Jboss folder

clean install jboss:hard-deploy
answered 2013-04-20T17:42:49.093

Your Answer