title: SpringBoot no main manifest attribute (maven)
body: <p>When running my jar file: <code>java -jar target/places-1.0-SNAPSHOT.jar</code></p>
  <p>I'm getting the next error :</p>
  <blockquote>
  <p>no main manifest attribute, in target/places-1.0-SNAPSHOT.jar</p>
  </blockquote>
  <p>The <code>pom.xml</code> contains the <code>spring-boot-maven-plugin</code>:</p>
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
          &lt;mainClass&gt;com.places.Main&lt;/mainClass&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  <p>I also tried to create a <code>MANIFEST.MF</code> file and specifying the class, but it didnt help.</p>
  <p>In addition, I also tried:</p>
  <pre><code>&lt;properties&gt;
        &lt;!-- The main class to start by executing &quot;java -jar&quot; --&gt;
        &lt;start-class&gt;com.places.Main&lt;/start-class&gt;
  &lt;/properties&gt;
  </code></pre>
  <p>Main class:</p>
  <pre><code>@SpringBootApplication
  public class Main {
      public static void main(String[] args) throws InterruptedException {
          SpringApplication.run(Main.class,args);
      }
  }
  </code></pre>
  <p>Any idea what else can I try?</p>