title: How to deploy a war file in jboss using maven pom.xml?
body: <pre class="lang-xml prettyprint-override"><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.tripod.demo&lt;/groupId&gt;
      &lt;artifactId&gt;Karthik-project&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;Karthik-project Maven Webapp&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;3.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;properties&gt;
          &lt;jboss-as.deploy.hostname&gt;localhost&lt;/jboss-as.deploy.hostname&gt;  &lt;!-- Where to deploy. --&gt;
          &lt;jboss-as.deploy.user&gt;admin&lt;/jboss-as.deploy.user&gt;
          &lt;jboss-as.deploy.pass&gt;admin&lt;/jboss-as.deploy.pass&gt;
          &lt;plugin.war.warName&gt;target/Karthik-project.war&lt;/plugin.war.warName&gt;
      &lt;/properties&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;filteringDeploymentDescriptors&gt;true&lt;/filteringDeploymentDescriptors&gt;
                      &lt;warName&gt;target/Karthik-project.war&lt;/warName&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.jboss.as.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;jboss-as-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;7.3.Final&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;hostname&gt;localhost&lt;/hostname&gt;
                      &lt;username&gt;admin&lt;/username&gt;
                      &lt;password&gt;admin&lt;/password&gt;
                      &lt;jbossHome&gt;/home/smadugula/jboss-eas-5.2&lt;/jbossHome&gt;
                      &lt;serverName&gt;Standalone&lt;/serverName&gt;
                      &lt;targetDir&gt;target&lt;/targetDir&gt;
                      &lt;fileName&gt;target/Karthik-project.war&lt;/fileName&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I have referred to various examples on stackoverflow and other links on google and I created this file. When I use mvn jboss:deploy , although I get a Build-Success message I get a message like : 
      [INFO] No files configured to deploy/undeploy.
  How to do I configure the war file ? Can anybody Help me with this ?
  Thanks in advance</p>