{"action":"opened","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/607","labels_url":"https://api.github.com/repos/grails/grails-core/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/607/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/607/events","html_url":"https://github.com/grails/grails-core/issues/607","id":66434701,"number":607,"title":"classpath resource loading problem in AbstractGrailsPlugin.readPluginConfiguration(...)","user":{"login":"zyro23","id":1370899,"avatar_url":"https://avatars.githubusercontent.com/u/1370899?v=3","gravatar_id":"","url":"https://api.github.com/users/zyro23","html_url":"https://github.com/zyro23","followers_url":"https://api.github.com/users/zyro23/followers","following_url":"https://api.github.com/users/zyro23/following{/other_user}","gists_url":"https://api.github.com/users/zyro23/gists{/gist_id}","starred_url":"https://api.github.com/users/zyro23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyro23/subscriptions","organizations_url":"https://api.github.com/users/zyro23/orgs","repos_url":"https://api.github.com/users/zyro23/repos","events_url":"https://api.github.com/users/zyro23/events{/privacy}","received_events_url":"https://api.github.com/users/zyro23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-05T12:42:41Z","updated_at":"2015-04-05T12:42:41Z","closed_at":null,"body":"hi,\r\n\r\nhttps://github.com/grails/grails-core/blob/master/grails-core/src/main/groovy/org/grails/plugins/AbstractGrailsPlugin.java#L113 gives unpredictable results because it relies on `Class.getResource(...)`. this is a problem if multiple plugins have a similar package structure inside their jar files.\r\n\r\ni came across this trying to start a grails3 migration of the quartz-monitor plugin. it ships views that get packaged inside a `/quartz` directory in its jar file. and that also is the package which contains `quartz.QuartzGrailsPlugin` from the quartz plugin. now `AbstractGrailsPlugin` tries to find the `plugin.yml` for the quartz plugin inside the quartz-monitor jar file!\r\n\r\nin the best case, this leads to a `NullpointerException` or a `TypeMismatchException`. worse, if multiple plugin jars contain a plugin.yml in the same package, the wrong yaml file would be added as `PropertySource`.\r\n\r\ni think when loading plugin configurations (plugin.yml) from binary/jar plugins, grails should only look in the jar file that contains the corresponding `XyzGrailsPlugin` class?\r\n\r\nthanks, zyro"}}