title: Run WAR file in AWS Beanstalk
body: <p>I created a Web Server with java and jersey. I also use MAVEN. I am able to run the project from the command line with this command</p>
  
  <pre><code>mvn clean verify org.codehaus.cargo:cargo-maven2-plugin:run
  </code></pre>
  
  <p>My problem is that I want to deploy the project in an Amazon aws Elastic Beanstalk as a java application. I have to upload the code there and amazon will execute it with this command </p>
  
  <pre><code>java -jar mywar.war
  </code></pre>
  
  <p>If I try to run my project locally with this command, I get this error</p>
  
  <pre><code>no main manifest attribute, in project.war
  </code></pre>
  
  <p>So I think that's why the project is not running properly in the Beanstalk. Is it possible to run my project with this java command or I must use the mvn command?</p>