title: How to deploy a maven web project using Wildfly to Heroku?
body: <p>I've built a Java EE 7 web app on Wildfly 10.</p>
  
  <p>I'm trying to deploy it to Heroku, but I can't make the application work.
  All I could do, so far, was to get Wildfly to work, but it seems to be running without my application.</p>
  
  <p>I pushed the application using git:</p>
  
  <pre><code>git push heroku master
  </code></pre>
  
  <p>And it is running the unpack goal.</p>
  
  <p>The Procfile:</p>
  
  <pre><code>web: target/wildfly-10.1.0.Final/bin/standalone.sh -Djboss.http.port=$PORT -b 0.0.0.0
  </code></pre>
  
  <p>The pom.xml</p>
  
  <pre><code>&lt;!-- Commented to keep it simple --&gt;
  &lt;build&gt;
      &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.wildfly.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;wildfly-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;${version.wildfly.maven.plugin}&lt;/version&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;unpack&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;unpack&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;artifactItems&gt;
                              &lt;artifactItem&gt;
                                  &lt;groupId&gt;org.wildfly&lt;/groupId&gt;
                                  &lt;artifactId&gt;wildfly-dist&lt;/artifactId&gt;
                                  &lt;version&gt;${version.wildfly}&lt;/version&gt;
                                  &lt;type&gt;zip&lt;/type&gt;
                                  &lt;overWrite&gt;false&lt;/overWrite&gt;
                                  &lt;outputDirectory&gt;target&lt;/outputDirectory&gt;
                              &lt;/artifactItem&gt;
                          &lt;/artifactItems&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&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;3.0.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
                  &lt;outputDirectory&gt;target/wildfly-${version.wildfly}/standalone/deployments&lt;/outputDirectory&gt;
                  &lt;warName&gt;${project.artifactId}&lt;/warName&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>