How to deploy .war file to JBoss AS 7 server using Maven?

后端 未结 2 380
遇见更好的自我
遇见更好的自我 2021-02-04 20:11

I have \"pom.xml\" file which is connecting to maven and checking out the code and creating a war file. Now I have to deploy the created war file to JBoss Application Server 7.

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-04 20:45

    • First, use bin/add-user.sh to add management user(admin/1234).

    • Second add to pom.xml:

           
             
          
              org.jboss.as.plugins
              jboss-as-maven-plugin
              7.5.Final
              
                  localhost
                  9999
                  app_name.war
                  admin
                  1234
              
          
      
      

    • Three: edit JBoss_Home/standalone/configuration/standalone.xml change the Ip address to 0.0.0.0: enter image description here

    • Four, deploy using #clean install jboss-as:redeploy enter image description here

提交回复
热议问题