title: Maven: Could not find or load main class
body: <p>I have the following configuration for my maven build and I have double checked the class name as well as package name multiple times to ensure it's accuracy. But everytime I run:
  <code>java -jar &lt;snapshot-with-dependencies&gt;.jar</code> I get <code>Error: Could not find or load main class com.atlassian.JiraRestCaller</code>.
  The excerpt from my pom file is as below</p>
  
  <pre><code>&lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;mainClass&gt;com.atlassian.JiraRestCaller&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
                  &lt;descriptorRefs&gt;
                      &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
                  &lt;/descriptorRefs&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;make-assembly&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p>I also tried adding <code>&lt;sourceDirectory&gt;src/main/java/com/atlassian/&lt;/sourceDirectory&gt;</code> but still get the same error</p>