Hi,

I have a plugin with a dependency to a library that uses 
java.util.ServiceLoader to locate its 
service implementation.

The dependency (com.github.docker-java:docker-java:0.10.2) is a single jar 
containing 
*   service interface, 
*   service implementation, 
*   provider-configuration file in META-INF/services 
*   code that triggers service discovery

Calling the library function that triggers 
ServiceLoader.load(DockerCmdExecFactory.class), 
I get "Fatal: Can't find any implementation of 
'com.github.dockerjava.api.command.DockerCmdExecFactory' in the current 
classpath."

Same thing happens when I call ServiceLoader.load(DockerCmdExecFactory.class) 
form the plugin code.

How can I get service discovery to work under these circumstances?

Thanks, Harald

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to