title: why I am unable to run this jar file of a maven project?
body: <p>Why I am unable to run this jar file? I clean and build the project successfully. but when I try to run the jar file in command prompt I get the error like</p>
  
  <pre><code>java -jar FSP-1.3.0 rc 1.jar
  
  Error: Unable to access jarfile FSP-1.3.0
  </code></pre>
  
  <p>This is maven project done in netbeans IDE 7.2.1. Below is my pom.xml</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;com.powerelectronics.freesun&lt;/groupId&gt;
        &lt;artifactId&gt;FSP&lt;/artifactId&gt;
        &lt;version&gt;1.3.0 rc 1&lt;/version&gt;
        &lt;packaging&gt;jar&lt;/packaging&gt;
        &lt;name&gt;FSPApp&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;/properties&gt;
  
        &lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;junit&lt;/groupId&gt;
            &lt;artifactId&gt;junit&lt;/artifactId&gt;
            &lt;version&gt;4.10&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
            &lt;artifactId&gt;javax.persistence&lt;/artifactId&gt;
            &lt;version&gt;2.0.4.v201112161009&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
            &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
            &lt;version&gt;1.7.1&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;au.com.alderaan&lt;/groupId&gt;
            &lt;artifactId&gt;eclipselink-staticweave-maven-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.0.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;artifactId&gt;maven-settings&lt;/artifactId&gt;
            &lt;groupId&gt;org.apache.maven&lt;/groupId&gt;
  
            &lt;version&gt;2.0.9&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
            &lt;artifactId&gt;slf4j-nop&lt;/artifactId&gt;
            &lt;version&gt;1.7.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
            &lt;artifactId&gt;eclipselink&lt;/artifactId&gt;
            &lt;version&gt;2.4.0&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;log4j&lt;/groupId&gt;
            &lt;artifactId&gt;log4j&lt;/artifactId&gt;
            &lt;version&gt;1.2.17&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;javax&lt;/groupId&gt;
            &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt;
            &lt;version&gt;6.0&lt;/version&gt;
            &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
  
        &lt;dependency&gt;
          &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
          &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
          &lt;version&gt;9.3-1100-jdbc4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-annotations&lt;/artifactId&gt;
          &lt;version&gt;2.1.0&lt;/version&gt;
      &lt;/dependency&gt;
       &lt;/dependencies&gt;
        &lt;build&gt;
            &lt;plugins&gt;
              &lt;plugin&gt; 
                  &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt; 
                  &lt;executions&gt; 
                      &lt;execution&gt; 
                          &lt;phase&gt;install&lt;/phase&gt; 
                          &lt;goals&gt; 
                              &lt;goal&gt;copy-dependencies&lt;/goal&gt; 
                          &lt;/goals&gt; 
                          &lt;configuration&gt; 
                              &lt;outputDirectory&gt;${project.build.directory}/lib&lt;/outputDirectory&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-jar-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;archive&gt;
                          &lt;manifest&gt;
                              &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                              &lt;classpathPrefix&gt;lib/&lt;/classpathPrefix&gt;
                              &lt;mainClass&gt;com.application.SIA&lt;/mainClass&gt;
                          &lt;/manifest&gt;
                      &lt;/archive&gt;
                  &lt;/configuration&gt; 
              &lt;/plugin&gt;
              &lt;plugin&gt;
                      &lt;artifactId&gt;eclipselink-staticweave-maven-plugin&lt;/artifactId&gt;
                      &lt;groupId&gt;au.com.alderaan&lt;/groupId&gt;
                      &lt;version&gt;1.0.3&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;weave&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;phase&gt;process-classes&lt;/phase&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
                      &lt;artifactId&gt;eclipselink&lt;/artifactId&gt;
                      &lt;version&gt;2.4.0&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
  
               &lt;/plugin&gt; 
          &lt;/plugins&gt;
        &lt;/build&gt;
        &lt;repositories&gt;
              &lt;repository&gt;
                  &lt;id&gt;EclipseLink&lt;/id&gt;
                      &lt;url&gt;http://download.eclipse.org/rt/eclipselink/maven.repo&lt;/url&gt;
              &lt;/repository&gt;
          &lt;/repositories&gt;
      &lt;/project&gt;
  </code></pre>
  
  <p>Please reply me soon. Please tell me what I am doing wrong here?</p>