title: Could not find or load main class, when running spring boot jar
body: <p>I Have issues running a jar that was created through 'mvn package'. I tried various solutions with no success.</p>
  
  <p>pom.xml  </p>
  
  <pre><code>&lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;rest-service&lt;/artifactId&gt;
  &lt;version&gt;0.1.0&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;parent&gt;
    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
    &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
    &lt;version&gt;1.4.4.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  ...
  &lt;properties&gt;
    &lt;java.version&gt;1.8&lt;/java.version&gt;
    &lt;start-class&gt;ves.sfdc.Application&lt;/start-class&gt;
  &lt;/properties&gt;
  
  
  &lt;build&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
      &lt;/plugin&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
        &lt;version&gt;3.0.0&lt;/version&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;phase&gt;package&lt;/phase&gt;
            &lt;goals&gt;
              &lt;goal&gt;shade&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;configuration&gt;
            &lt;/configuration&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>projectroot\src\main\java\ves\sfdc\application.java </p>
  
  <pre><code>@SpringBootApplication
  @Configuration
  @ComponentScan
  @EnableAsync
  @EnableScheduling
  @EnableAutoConfiguration
  
  public class Application{
  
      @Autowired
      JdbcTemplate jdbcTemplate;
      @Autowired
      AccountService accountService;
      @Autowired
      static
      SfdcUtil sfdcUtil= new SfdcUtil();
      @Autowired
      NamedParameterJdbcTemplate jdbcTemplate2;    
  
      public static void main(String[] args) throws SecurityException, IOException {   
          SpringApplication.run(Application.class, args);
      }        
  }
  </code></pre>
  
  <p>This project works fine in Eclipse, and when I do <strong>mvn spring-boot:run</strong></p>
  
  <p>I Wonder if I'm missing something here?</p>