{"action":"created","issue":{"url":"https://api.github.com/repos/m2e-code-quality/m2e-code-quality/issues/40","labels_url":"https://api.github.com/repos/m2e-code-quality/m2e-code-quality/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/m2e-code-quality/m2e-code-quality/issues/40/comments","events_url":"https://api.github.com/repos/m2e-code-quality/m2e-code-quality/issues/40/events","html_url":"https://github.com/m2e-code-quality/m2e-code-quality/issues/40","id":25019800,"number":40,"title":"Build errors when Checkstyle configuration resides in workspace project","user":{"login":"sewe","id":491981,"avatar_url":"https://avatars.githubusercontent.com/u/491981?v=3","gravatar_id":"","url":"https://api.github.com/users/sewe","html_url":"https://github.com/sewe","followers_url":"https://api.github.com/users/sewe/followers","following_url":"https://api.github.com/users/sewe/following{/other_user}","gists_url":"https://api.github.com/users/sewe/gists{/gist_id}","starred_url":"https://api.github.com/users/sewe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sewe/subscriptions","organizations_url":"https://api.github.com/users/sewe/orgs","repos_url":"https://api.github.com/users/sewe/repos","events_url":"https://api.github.com/users/sewe/events{/privacy}","received_events_url":"https://api.github.com/users/sewe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-01-03T15:42:03Z","updated_at":"2015-01-15T14:00:26Z","closed_at":null,"body":"(This may be related to issue #32.)\r\n\r\nWhen using a plugin configuration like the following\r\n\r\n```\r\n<plugin>\r\n\t<groupId>org.apache.maven.plugins</groupId>\r\n\t<artifactId>maven-checkstyle-plugin</artifactId>\r\n\t<version>2.10</version>\r\n\t<dependencies>\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.eclipse.recommenders</groupId>\r\n\t\t\t<artifactId>coding-conventions</artifactId>\r\n\t\t\t<version>${recommenders-version}</version>\r\n\t\t</dependency>\r\n\t</dependencies>\r\n\t<executions>\r\n\t\t<execution>\r\n\t\t\t<id>check-coding-conventions</id>\r\n\t\t\t<goals>\r\n\t\t\t\t<goal>check</goal>\r\n\t\t\t</goals>\r\n\t\t\t<configuration>\r\n\t\t\t\t<configLocation>checkstyle/config.xml</configLocation>\r\n\t\t\t</configuration>\r\n\t\t</execution>\r\n\t</executions>\r\n</plugin>\r\n```\r\n\r\nan import as \"Existing Maven project\" fails with error multiple messages like the following:\r\n\r\n```\r\nUnable to update Maven configuration\r\nCould not get configured mojo for org.apache.maven.plugins:maven-checkstyle-plugin:2.10:check {execution: check-coding-conventions}\r\nPlugin org.apache.maven.plugins:maven-checkstyle-plugin:2.10 or one of its dependencies could not be resolved: Failure to find org.eclipse.recommenders:coding-conventions:jar:2.0.5-SNAPSHOT in http://repository.apache.org/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced\r\n```\r\n\r\nApparently, the Checkstyle m2e connector cannot deal with the situation where the Checkstyle configuration is not (yet) available through a Maven repository but *is* available in the Eclipse workspace (respectively the reactor; thus, the above works when building on the command line).\r\n\r\nFWIW, the project to reproduce this is mirrored on Github: https://github.com/eclipse/recommenders/."},"comment":{"url":"https://api.github.com/repos/m2e-code-quality/m2e-code-quality/issues/comments/70088909","html_url":"https://github.com/m2e-code-quality/m2e-code-quality/issues/40#issuecomment-70088909","issue_url":"https://api.github.com/repos/m2e-code-quality/m2e-code-quality/issues/40","id":70088909,"user":{"login":"ArloL","id":195367,"avatar_url":"https://avatars.githubusercontent.com/u/195367?v=3","gravatar_id":"","url":"https://api.github.com/users/ArloL","html_url":"https://github.com/ArloL","followers_url":"https://api.github.com/users/ArloL/followers","following_url":"https://api.github.com/users/ArloL/following{/other_user}","gists_url":"https://api.github.com/users/ArloL/gists{/gist_id}","starred_url":"https://api.github.com/users/ArloL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArloL/subscriptions","organizations_url":"https://api.github.com/users/ArloL/orgs","repos_url":"https://api.github.com/users/ArloL/repos","events_url":"https://api.github.com/users/ArloL/events{/privacy}","received_events_url":"https://api.github.com/users/ArloL/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T14:00:26Z","updated_at":"2015-01-15T14:00:26Z","body":"The maven remote resources plugin uses an ArtifactResolver that is injected via plexus. I don't know how to get plexus to give me one. So that didn't really work. Do you have any further ideas?"}}