Sorry if this is a niave question, but I haven't had much success Googling it. We have a plugin that uses Velocity to generate some of our source. The plugin needs to look for overridden Velocity templates in a project specific location before using those contained within the plugin. At this point velocity has been configured to use the ClasspathResourceLoader. How can I ensure that the Plugin puts the project specific classpath resources ahead of the resources contained in the Plugin? Is there any Maven mechanism that can be used to prepend to the plugin classpath? Or do I need to set a new Classloader inside the plugin that looks for project resources before delegating to the pre-existing Classloader? And if so, does anyone know where to find such an inverted Classloader? William
