{"action":"created","issue":{"url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/46","repository_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner","labels_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/46/comments","events_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/46/events","html_url":"https://github.com/lukehutch/fast-classpath-scanner/issues/46","id":157082184,"number":46,"title":"Classpath Scanning in Spring Boot Jar Not Working","user":{"login":"creactiviti","id":3052806,"avatar_url":"https://avatars.githubusercontent.com/u/3052806?v=3","gravatar_id":"","url":"https://api.github.com/users/creactiviti","html_url":"https://github.com/creactiviti","followers_url":"https://api.github.com/users/creactiviti/followers","following_url":"https://api.github.com/users/creactiviti/following{/other_user}","gists_url":"https://api.github.com/users/creactiviti/gists{/gist_id}","starred_url":"https://api.github.com/users/creactiviti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creactiviti/subscriptions","organizations_url":"https://api.github.com/users/creactiviti/orgs","repos_url":"https://api.github.com/users/creactiviti/repos","events_url":"https://api.github.com/users/creactiviti/events{/privacy}","received_events_url":"https://api.github.com/users/creactiviti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-05-26T21:22:01Z","updated_at":"2016-09-09T13:54:37Z","closed_at":null,"body":"I have a custom annotation:\r\n\r\n    @Target(value=ElementType.TYPE)\r\n    @Retention(RetentionPolicy.RUNTIME)\r\n    public @interface Pipeline  {\r\n      String id ();\r\n      String name ();\r\n      boolean visible () default true;\r\n      String role () default \"USER\";\r\n    }\r\n\r\nWhich I use on interfaces within a Spring Boot App with nested jars: \r\n\r\n    @Pipeline(id=\"my-pipeline\", name=\"My Pipeline\")\r\n    public interface Echo {\r\n      ...\r\n    }\r\n\r\nMy project structure:\r\n\r\n    parent-boot-project\r\n       |\r\n       --- plugin1.jar \r\n       --- plugin2.jar <--- interfaces are here\r\n       --- ...\r\n\r\nNext, I use lukehutch's fast-classpath-scanner to scan for them:\r\n\r\n    new FastClasspathScanner(BASE_PACKAGE)\r\n        .matchClassesWithAnnotation(PIPELINE_ANNOTATION, aProcessor)\r\n        .verbose()\r\n        .scan();\r\n\r\n\r\nWorks great on my IDE (eclipse) but not when I build the jar. Tried messing around with the classpath but to no avail. Anyone ran into something like that? \r\n"},"comment":{"url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/comments/245919605","html_url":"https://github.com/lukehutch/fast-classpath-scanner/issues/46#issuecomment-245919605","issue_url":"https://api.github.com/repos/lukehutch/fast-classpath-scanner/issues/46","id":245919605,"user":{"login":"lukehutch","id":811305,"avatar_url":"https://avatars.githubusercontent.com/u/811305?v=3","gravatar_id":"","url":"https://api.github.com/users/lukehutch","html_url":"https://github.com/lukehutch","followers_url":"https://api.github.com/users/lukehutch/followers","following_url":"https://api.github.com/users/lukehutch/following{/other_user}","gists_url":"https://api.github.com/users/lukehutch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehutch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehutch/subscriptions","organizations_url":"https://api.github.com/users/lukehutch/orgs","repos_url":"https://api.github.com/users/lukehutch/repos","events_url":"https://api.github.com/users/lukehutch/events{/privacy}","received_events_url":"https://api.github.com/users/lukehutch/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T13:54:36Z","updated_at":"2016-09-09T13:54:36Z","body":"@Dretch you're welcome, thanks for testing, and for taking the time to create a minimal testcase -- I couldn't have figured this out without it, and the scanning is a lot more powerful now that FCS supports scanning jars inside jars. (I had put that off for a long time, thinking nobody would ever run into it ;-) )\r\n\r\n@creactiviti if this also fixes the issue for you, please go ahead and close the bug. Thank you for the report!"}}
{"actor":{"display_login":"lukehutch"}}