John Prystash wrote:

From inside my plugin code, I want to be able to load the text of the resource,
contained in src/main/resources/request.xml (and presently in target/classes):
[...]
It appears to be that while the resource is on the classpath of the
project using the plugin, its not available to the plugin itself?

Right, project classpaths are plugin classpaths are intentionally separated, see [0, 1] for some more details. You basically have to create your own URLClassLoader with the desired contents.


Benjamin


[0] http://maven.apache.org/guides/mini/guide-maven-classloading.html
[1] https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Class+Loading

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to