I have a maven application and I like to use the ServiceLoader
mechanism to load plugins.
Currently I achieve this by adding the dependency to the pom, so that the dependency jar is in the classpath and the ServiceLoader can pick it up.
But how can this be achieved without declaring the dependency in the pom ?
I don't like to change the pom with every plugin that shall be used.
How can I do this - or must the plugin jar always be in the pom ?