I wrote a small plugin for the natural language processing tool GATE, https://gate.ac.uk/
The CREOLE plugin is mainly a java bean which extends gate.creole.AbstractLanguageAnalyser
. It may use additional JAR files which come together with the plugin. GATE loads to compiled plugin class and the JARs from the plugin directory to the main application classpath of the GATE application.
Now i am faced with the problem, that e.g. the spring.jar in my plugin conflicts with the JAR which comes with the GATE system and which has already been loaded to the classpath:
org.springframework.util.ClassUtils is available via both the system classpath and a plugin; the plugin classes will be ignored
Is it possible to use a separate class loader for the plugin to avoid these conflicts?