<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 9/29/2014 9:00 AM, Tomaž Cerar
wrote:<br>
</div>
<blockquote
cite="mid:CAMquZP7RoXCOQU+JVFG8p9G-cNLi6BR0pDqkznb2zDpQZahhGQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 29, 2014 at 2:32 PM, Stan
Silvert <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ssilvert@redhat.com" target="_blank">ssilvert@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1n5" class="a3s" style="overflow:hidden">I'd
like to eliminate opening the WAR and have a
DeploymentProcessor<br>
look in a particular directory and add the jar at
deployment time. What<br>
is the cleanest way to do that?<br>
</div>
</blockquote>
<div><br>
</div>
<div>Simple let user create new module that has that jar in
it and than in your war <br>
dependencies processor add that module to deployment as
dependency<br>
</div>
</div>
</div>
</div>
</blockquote>
I tried that and it doesn't work very well. The service jar will
need to depend on classes in WEB-INF/lib. So the dependencies get
hard to declare in module.xml. A user might not even know how to do
it. <br>
<br>
So it really needs to "look" like it's sitting in WEB-INF/lib. I
see the code in WebStructureDeploymentProcessor that adds
ResourceRoots to Attachments.RESOURCE_ROOTS. I'm wondering if that
is the way to accomplish this.<br>
<a class="moz-txt-link-freetext" href="https://github.com/wildfly/wildfly/blob/master/undertow/src/main/java/org/wildfly/extension/undertow/deployment/WarStructureDeploymentProcessor.java#L121">https://github.com/wildfly/wildfly/blob/master/undertow/src/main/java/org/wildfly/extension/undertow/deployment/WarStructureDeploymentProcessor.java#L121</a><br>
<blockquote
cite="mid:CAMquZP7RoXCOQU+JVFG8p9G-cNLi6BR0pDqkznb2zDpQZahhGQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1n5" class="a3s" style="overflow:hidden">
Bonus points if you tell me that I can treat the service
provider jar as<br>
a deployment and let the user upload it via CLI. :-)</div>
</blockquote>
</div>
you can add module as global dependency, but that is ugly.<br>
</div>
</div>
</blockquote>
Yea, I don't want to do that.<br>
<blockquote
cite="mid:CAMquZP7RoXCOQU+JVFG8p9G-cNLi6BR0pDqkznb2zDpQZahhGQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">But what you could do is have
deployment processor that would handle exactly<br>
deployments and register keycloak plugins based on that.<br>
</div>
</div>
</blockquote>
I don't understand what you mean by "exactly deployments".<br>
<blockquote
cite="mid:CAMquZP7RoXCOQU+JVFG8p9G-cNLi6BR0pDqkznb2zDpQZahhGQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra"> <br>
</div>
<div class="gmail_extra"><br>
</div>
</div>
</blockquote>
<br>
</body>
</html>