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

后端 未结 9 1584
太阳男子
太阳男子 2020-12-23 12:11

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. Any step b

9条回答
  •  遥遥无期
    2020-12-23 13:07

    If it is a maven application (EAR) or (JAR) or what ever, you have just to add to your pom.xml:

            
                org.jboss.as.plugins
                jboss-as-maven-plugin
                
                    ${artifactId}-${project.version}.ear
                    9999 
                
            
    

    And in your eclipse run configurations you make for the goals : jboss-as:deploy

    Of course i am talking her about Jboss AS7 or EAP6

提交回复
热议问题