Can someone tell me how to get the maven plugin classloader? Or tell me if
that's I can't obtain the reference file as such ... from a plugin.java file
e.g.
ClassLoader classLoader = this.getClass().getClassLoader();
File file = new File(classLoader.getResource
(getLocalProperties().getProperty("templateName")).toString());
FileReader reader = new FileReader(file);
The templateName is a String e.g.
webstuff/mytemplate.ftl
And it resides in the plugin jar at /webstuff/mytemplate.ftl . I checked
the jar in the .m2 repo. Is my FileNotFoundException because I am using the
wrong classloader? And, if so, what classloader, and how do I get it?
Thanks,
David