{"action":"created","issue":{"url":"https://api.github.com/repos/chrischristo/capsule-maven-plugin/issues/30","labels_url":"https://api.github.com/repos/chrischristo/capsule-maven-plugin/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/chrischristo/capsule-maven-plugin/issues/30/comments","events_url":"https://api.github.com/repos/chrischristo/capsule-maven-plugin/issues/30/events","html_url":"https://github.com/chrischristo/capsule-maven-plugin/issues/30","id":108330293,"number":30,"title":"Exec Plugin to Capsule Plugin Mapping","user":{"login":"kilemensi","id":1779590,"avatar_url":"https://avatars.githubusercontent.com/u/1779590?v=3","gravatar_id":"","url":"https://api.github.com/users/kilemensi","html_url":"https://github.com/kilemensi","followers_url":"https://api.github.com/users/kilemensi/followers","following_url":"https://api.github.com/users/kilemensi/following{/other_user}","gists_url":"https://api.github.com/users/kilemensi/gists{/gist_id}","starred_url":"https://api.github.com/users/kilemensi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilemensi/subscriptions","organizations_url":"https://api.github.com/users/kilemensi/orgs","repos_url":"https://api.github.com/users/kilemensi/repos","events_url":"https://api.github.com/users/kilemensi/events{/privacy}","received_events_url":"https://api.github.com/users/kilemensi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-25T13:47:56Z","updated_at":"2015-12-09T06:35:30Z","closed_at":"2015-12-09T06:35:30Z","body":"Hi @chrischristo\r\n\r\nFrom the `exec:java` plugin [Java Goal] (http://www.mojohaus.org/exec-maven-plugin/usage.html) usage page, `arguments` are supposed to be mapped to *application* arguments and not *JVM* arguments as in the current implementation.\r\n\r\nI'm raising this issue because by doing this way, if I use `mvn exec:java` to run my application it runs fine but when I want to run the application through the final capsule jar, it gives me an error caused by `arguments` which have been mapped to `JVM-args` being specified first in the command line before the `appClass` making java think the first `argument` is the class name.\r\n\r\nTLDR:\r\nFrom `exec` configuration I expect the final capsule command to be: `java <systemProperties/> <mainClass/> <arguments/>` but the mapping or `arguments` to `JVM-args` causes the command to be `java <arguments/> <systemProperties/> <mainClass/>` causing program exec failure.\r\n\r\nEDIT\r\nI believe exec `arguments` should be mapped to the `Args` manifest attribute.\r\n"},"comment":{"url":"https://api.github.com/repos/chrischristo/capsule-maven-plugin/issues/comments/163128633","html_url":"https://github.com/chrischristo/capsule-maven-plugin/issues/30#issuecomment-163128633","issue_url":"https://api.github.com/repos/chrischristo/capsule-maven-plugin/issues/30","id":163128633,"user":{"login":"chrischristo","id":4428464,"avatar_url":"https://avatars.githubusercontent.com/u/4428464?v=3","gravatar_id":"","url":"https://api.github.com/users/chrischristo","html_url":"https://github.com/chrischristo","followers_url":"https://api.github.com/users/chrischristo/followers","following_url":"https://api.github.com/users/chrischristo/following{/other_user}","gists_url":"https://api.github.com/users/chrischristo/gists{/gist_id}","starred_url":"https://api.github.com/users/chrischristo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrischristo/subscriptions","organizations_url":"https://api.github.com/users/chrischristo/orgs","repos_url":"https://api.github.com/users/chrischristo/repos","events_url":"https://api.github.com/users/chrischristo/events{/privacy}","received_events_url":"https://api.github.com/users/chrischristo/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T06:35:30Z","updated_at":"2015-12-09T06:35:30Z","body":"[Fixed in 1.0.0](https://github.com/chrischristo/capsule-maven-plugin/releases/tag/capsule-maven-plugin-1.0.0)."}}