{"action":"created","issue":{"url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/30","repository_url":"https://api.github.com/repos/lambadaframework/lambadaframework","labels_url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/30/comments","events_url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/30/events","html_url":"https://github.com/lambadaframework/lambadaframework/issues/30","id":178563464,"number":30,"title":"Adding own dependency","user":{"login":"anderjo4","id":5907897,"avatar_url":"https://avatars.githubusercontent.com/u/5907897?v=3","gravatar_id":"","url":"https://api.github.com/users/anderjo4","html_url":"https://github.com/anderjo4","followers_url":"https://api.github.com/users/anderjo4/followers","following_url":"https://api.github.com/users/anderjo4/following{/other_user}","gists_url":"https://api.github.com/users/anderjo4/gists{/gist_id}","starred_url":"https://api.github.com/users/anderjo4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderjo4/subscriptions","organizations_url":"https://api.github.com/users/anderjo4/orgs","repos_url":"https://api.github.com/users/anderjo4/repos","events_url":"https://api.github.com/users/anderjo4/events{/privacy}","received_events_url":"https://api.github.com/users/anderjo4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-09-22T09:37:53Z","updated_at":"2016-09-26T11:58:48Z","closed_at":"2016-09-26T11:56:52Z","body":"Hey,\r\n\r\nI'm trying to add a dependency with maven.\r\n\r\nMy dependencies in the pom.xml looks like this:\r\n```\r\n<dependencies>\r\n        <dependency>\r\n            <groupId>org.lambadaframework</groupId>\r\n            <artifactId>runtime</artifactId>\r\n            <version>${lambada.version}</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>com.amazonaws</groupId>\r\n            <artifactId>aws-lambda-java-log4j</artifactId>\r\n            <version>1.0.0</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>com.amazonaws</groupId>\r\n            <artifactId>aws-lambda-java-events</artifactId>\r\n            <version>1.3.0</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.json</groupId>\r\n            <artifactId>json</artifactId>\r\n            <version>20160810</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>junit</groupId>\r\n            <artifactId>junit</artifactId>\r\n            <version>4.12</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n    </dependencies>\r\n```\r\n\r\nIt's the dependency `json.org` that won't work.\r\n\r\nThe Error I receive is : \r\n```\r\n A required class was missing while executing org.lambadaframework:lambada-maven-plugin:0.0.6:deploy: org/json/JSONObject\r\n```\r\n\r\n````\r\n[ERROR] Number of foreign imports: 1\r\n[ERROR] import: Entry[import  from realm ClassRealm[project>se.some.project:project-test:0.0.6, parent: ClassRealm[maven.api, parent: null]]]\r\n[ERROR] \r\n[ERROR] -----------------------------------------------------: org.json.JSONObject\r\n````\r\n\r\nI did suspect that it's the `maven-shade-plugin`that causes the problem but the log  clearly states that it's included in the shaded jar:\r\n````\r\nIncluding org.json:json:jar:20160810 in the shaded jar.\r\n````\r\n\r\nLocal maven set up\r\n````\r\nMaven home: /opt/apache-maven-3.3.9\r\nJava version: 1.8.0_102, vendor: Oracle Corporation\r\nJava home: /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre\r\nDefault locale: en_US, platform encoding: UTF-8\r\nOS name: \"mac os x\", version: \"10.12\", arch: \"x86_64\", family: \"mac\"\r\n```\r\nIs it possible to add dependencies?\r\n\r\nThanks!\r\n\r\n//Jonathan"},"comment":{"url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/comments/249550430","html_url":"https://github.com/lambadaframework/lambadaframework/issues/30#issuecomment-249550430","issue_url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/30","id":249550430,"user":{"login":"anderjo4","id":5907897,"avatar_url":"https://avatars.githubusercontent.com/u/5907897?v=3","gravatar_id":"","url":"https://api.github.com/users/anderjo4","html_url":"https://github.com/anderjo4","followers_url":"https://api.github.com/users/anderjo4/followers","following_url":"https://api.github.com/users/anderjo4/following{/other_user}","gists_url":"https://api.github.com/users/anderjo4/gists{/gist_id}","starred_url":"https://api.github.com/users/anderjo4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderjo4/subscriptions","organizations_url":"https://api.github.com/users/anderjo4/orgs","repos_url":"https://api.github.com/users/anderjo4/repos","events_url":"https://api.github.com/users/anderjo4/events{/privacy}","received_events_url":"https://api.github.com/users/anderjo4/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T11:58:48Z","updated_at":"2016-09-26T11:58:48Z","body":"@cagataygurturk I will."}}
{"actor":{"display_login":"anderjo4"}}