title: Heroku maven spring boot Build success Run Failed
body: <p>I wanted to deploy a spring boot project in heroku. The deployment is a success as its build triggered and build succeeded. Then i added procfile to run it.here's my procfile : </p>
  
  <pre><code>web: java $JAVA_OPTS -Dserver.port=$PORT -jar target/*.jar 
  </code></pre>
  
  <p>and my pom.xml is: </p>
  
  <pre><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/xsd/maven-4.0.0.xsd"&gt;
        &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
        &lt;groupId&gt;palebluedotstardust&lt;/groupId&gt;
        &lt;artifactId&gt;BloodDB&lt;/artifactId&gt;
        &lt;version&gt;1.0.0&lt;/version&gt;
        &lt;packaging&gt;war&lt;/packaging&gt;
  
        &lt;name&gt;BloodDB&lt;/name&gt;
        &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
               &lt;properties&gt;
              &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  
  
                  &lt;org.slf4j.version&gt;1.7.7&lt;/org.slf4j.version&gt;
                  &lt;javax.servlet-api.version&gt;2.5&lt;/javax.servlet-api.version&gt;
                  &lt;maven-compiler-plugin.version&gt;3.1&lt;/maven-compiler-plugin.version&gt;
  
                  &lt;java.version&gt;1.8&lt;/java.version&gt;
                  &lt;!--&lt;commons-dbcp.version&gt;1.4&lt;/commons-dbcp.version&gt;--&gt;
  
  
            &lt;/properties&gt;
  
  
  
              &lt;pluginRepositories&gt;
                &lt;pluginRepository&gt;
                    &lt;id&gt;spring-snapshots&lt;/id&gt;
                    &lt;url&gt;http://repo.spring.io/snapshot&lt;/url&gt;
                &lt;/pluginRepository&gt;
                &lt;pluginRepository&gt;
                    &lt;id&gt;spring-milestones&lt;/id&gt;
                    &lt;url&gt;http://repo.spring.io/milestone&lt;/url&gt;
                &lt;/pluginRepository&gt;
              &lt;/pluginRepositories&gt;
  
  
            &lt;repositories&gt;
  
  ...........
  </code></pre>
  
  <p>This is the log: </p>
  
  <pre><code>2017-03-16T05:04:02.185944+00:00 heroku[web.1]: Starting process with command `java $JAVA_OPTS -Dserver.port=16048 -jar target/*.jar`
  2017-03-16T05:04:04.368304+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
  2017-03-16T05:04:04.369353+00:00 app[web.1]: Error: Unable to access jarfile target/*.jar
  2017-03-16T05:04:04.469613+00:00 heroku[web.1]: State changed from starting to crashed
  2017-03-16T05:04:04.456272+00:00 heroku[web.1]: Process exited with status 1
  </code></pre>