On Mon, Sep 29, 2014 at 2:32 PM, Stan Silvert <ssilvert@redhat.com> wrote:
I'd like to eliminate opening the WAR and have a DeploymentProcessor
look in a particular directory and add the jar at deployment time. What
is the cleanest way to do that?

Simple let user create new module that has that jar in it and than in your war
dependencies processor add that module to deployment as dependency

 
Bonus points if you tell me that I can treat the service provider jar as
a deployment and let the user upload it via CLI. :-)
you can add module as global dependency, but that is ugly.

But what you could do is have deployment processor that would handle exactly
deployments and register keycloak plugins based on that.