title: Why can't my jar files and my .war file be found within my project build? Maven
body: <p>Ok so I'm trying to test my Maven app locally with this command:</p>
  
  <p>java -jar target/dependency/jetty-runner.jar  target/*.war</p>
  
  <p>But I'm getting this error:</p>
  
  <p>"Unable to access jarfile target/dependency/jetty-runner.jar."</p>
  
  <p>It also can't seem to access my .war file. I don't know what's going on. I tried manually downloading the jetty-runner.jar file and exporting my project into a war, and then running the command from my desktop where the two files were located, and that worked. So it's gotta be a problem with finding these files.</p>
  
  <p>I found that code online. What is the target/dependency folder? Why isn't my jetty-runner there? It is also unable to find the <em>.war file in target. I know this cause I used my manually downloaded jetty-runner.jar with target/</em>.war and it still failed with this:</p>
  
  <p>"java.net.MalformedURLException: no protocol: target/*war"</p>
  
  <p>I did include the jetty-runner in my pom.xml:</p>
  
  <pre><code>&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;2.3&lt;/version&gt;
  &lt;executions&gt;
      &lt;execution&gt;
          &lt;phase&gt;package&lt;/phase&gt;
          &lt;goals&gt;&lt;goal&gt;copy&lt;/goal&gt;&lt;/goals&gt;
          &lt;configuration&gt;
              &lt;artifactItems&gt;
                  &lt;artifactItem&gt;
                      &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
                      &lt;artifactId&gt;jetty-runner&lt;/artifactId&gt;
                      &lt;version&gt;7.4.5.v20110725&lt;/version&gt;
                      &lt;destFileName&gt;jetty-runner.jar&lt;/destFileName&gt;
                  &lt;/artifactItem&gt;
              &lt;/artifactItems&gt;
          &lt;/configuration&gt;
      &lt;/execution&gt;
  &lt;/executions&gt;
  </code></pre>
  
  <p></p>
  
  <p>So what gives? What is this target folder? and why can't anything be found? Thanks!</p>