{"action":"created","issue":{"url":"https://api.github.com/repos/jacoco/jacoco/issues/355","labels_url":"https://api.github.com/repos/jacoco/jacoco/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/jacoco/jacoco/issues/355/comments","events_url":"https://api.github.com/repos/jacoco/jacoco/issues/355/events","html_url":"https://github.com/jacoco/jacoco/issues/355","id":114024567,"number":355,"title":"Unable to run MavenEmbedder in Project which has jacoco maven dependency","user":{"login":"tariq1890","id":2658224,"avatar_url":"https://avatars.githubusercontent.com/u/2658224?v=3","gravatar_id":"","url":"https://api.github.com/users/tariq1890","html_url":"https://github.com/tariq1890","followers_url":"https://api.github.com/users/tariq1890/followers","following_url":"https://api.github.com/users/tariq1890/following{/other_user}","gists_url":"https://api.github.com/users/tariq1890/gists{/gist_id}","starred_url":"https://api.github.com/users/tariq1890/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariq1890/subscriptions","organizations_url":"https://api.github.com/users/tariq1890/orgs","repos_url":"https://api.github.com/users/tariq1890/repos","events_url":"https://api.github.com/users/tariq1890/events{/privacy}","received_events_url":"https://api.github.com/users/tariq1890/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T10:49:26Z","updated_at":"2015-10-29T11:23:43Z","closed_at":null,"body":"Hey Guys,\r\n\r\nThis may not be a Jacoco issue. I get the NoSuchMethodError  for the DefaultPlexusContainer constructor when i run MavenEmbedder in my project\r\n```\r\nException in thread \"main\" java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.<init>(Lorg/codehaus/plexus/ContainerConfiguration;[Lcom/google/inject/Module;)V\r\n\tat org.apache.maven.cli.MavenCli.container(MavenCli.java:542)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:279)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:241)\r\n```\r\nOn doing a root cause analysis I found out that the NoSuchMethodError is due to a dependency conflict with jacoco maven plugin, The jacoco plugin has the following \"dependency plexus-container-default-1.0-alpha-9-stable-1\" where there are no paramterized constructors for DefaultPlexusContainer. Whereas Maven Embedded refers to the DefaultPlexusContainer class from jar org.eclipse.sisu.plexus .Since the package names and class names are the same for both the jars, the older DefaultPlexusContainer overrides and I get the NoSuchMethodError as a result\r\n\r\nI would like your advice on this. Thanks"},"comment":{"url":"https://api.github.com/repos/jacoco/jacoco/issues/comments/152150974","html_url":"https://github.com/jacoco/jacoco/issues/355#issuecomment-152150974","issue_url":"https://api.github.com/repos/jacoco/jacoco/issues/355","id":152150974,"user":{"login":"Godin","id":138671,"avatar_url":"https://avatars.githubusercontent.com/u/138671?v=3","gravatar_id":"","url":"https://api.github.com/users/Godin","html_url":"https://github.com/Godin","followers_url":"https://api.github.com/users/Godin/followers","following_url":"https://api.github.com/users/Godin/following{/other_user}","gists_url":"https://api.github.com/users/Godin/gists{/gist_id}","starred_url":"https://api.github.com/users/Godin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godin/subscriptions","organizations_url":"https://api.github.com/users/Godin/orgs","repos_url":"https://api.github.com/users/Godin/repos","events_url":"https://api.github.com/users/Godin/events{/privacy}","received_events_url":"https://api.github.com/users/Godin/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T11:23:43Z","updated_at":"2015-10-29T11:23:43Z","body":"@tariq1890 Hi, do you have a simple reproducer, which we'll be able to try?"}}