{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2345","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2345/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2345/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2345/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/2345","id":139538861,"number":2345,"title":"Spring MVC - mvn package leads to \"no main manifest attribute\"","user":{"login":"glederrey","id":13273462,"avatar_url":"https://avatars.githubusercontent.com/u/13273462?v=3","gravatar_id":"","url":"https://api.github.com/users/glederrey","html_url":"https://github.com/glederrey","followers_url":"https://api.github.com/users/glederrey/followers","following_url":"https://api.github.com/users/glederrey/following{/other_user}","gists_url":"https://api.github.com/users/glederrey/gists{/gist_id}","starred_url":"https://api.github.com/users/glederrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glederrey/subscriptions","organizations_url":"https://api.github.com/users/glederrey/orgs","repos_url":"https://api.github.com/users/glederrey/repos","events_url":"https://api.github.com/users/glederrey/events{/privacy}","received_events_url":"https://api.github.com/users/glederrey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T10:33:53Z","updated_at":"2016-03-09T17:01:01Z","closed_at":null,"body":"Hi,\r\n\r\nI have a Spring MVC server generated using Swagger.. And normally, to start it we use `mvn jetty:run`.. But I'd like to create a JAR file that I can launch afterwards.. So, to do that, I use the command `mvn package` and it creates correctly the JAR file in the target folder.\r\n\r\nBut when I try to start it using the command `java -jar swagger-spring-mvc-server-1.0.0.jar`, I get this error: `no main manifest attribute, in swagger-spring-mvc-server-1.0.0.jar`.\r\n\r\nIf I'm right, this problem happens because the `Main.class` is missing.. But I didn't find any main classes in the generated code. \r\n\r\nDoes anyone knows if I'm doing something wrong?? Or if there's another way to get the JAR file? \r\nThanks"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/194397266","html_url":"https://github.com/swagger-api/swagger-codegen/issues/2345#issuecomment-194397266","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2345","id":194397266,"user":{"login":"glederrey","id":13273462,"avatar_url":"https://avatars.githubusercontent.com/u/13273462?v=3","gravatar_id":"","url":"https://api.github.com/users/glederrey","html_url":"https://github.com/glederrey","followers_url":"https://api.github.com/users/glederrey/followers","following_url":"https://api.github.com/users/glederrey/following{/other_user}","gists_url":"https://api.github.com/users/glederrey/gists{/gist_id}","starred_url":"https://api.github.com/users/glederrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glederrey/subscriptions","organizations_url":"https://api.github.com/users/glederrey/orgs","repos_url":"https://api.github.com/users/glederrey/repos","events_url":"https://api.github.com/users/glederrey/events{/privacy}","received_events_url":"https://api.github.com/users/glederrey/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T17:01:01Z","updated_at":"2016-03-09T17:01:01Z","body":"Hi again,\r\n\r\nI'm coming back here because I spend some time searching for building Spring-MVC using Maven.. \r\n\r\nSo, from what I saw, a Web application doesn't have a main class and therefore should be compiled as a WAR file, not a JAR. Is it right?? \r\n\r\nIf yes, then we need to update the pom.xml file.. I can have a look at that. "}}