[keycloak-user] How to deploy a keycloak's SPI project using the Keycloak Deployer (/deploy)?

Marko Strukelj mstrukel at redhat.com
Mon Oct 2 11:07:04 EDT 2017


https://github.com/keycloak/keycloak/blob/master/examples/multi-tenant/src/main/webapp/WEB-INF/jboss-deployment-structure.xml

On Mon, Oct 2, 2017 at 5:03 PM, Alik Elzin <kilaka at gmail.com> wrote:

> No file named `jboss-deployment-structure.xml` in all keycloak
> quickstarts and examples :(
>
> On Mon, Oct 2, 2017 at 4:53 PM, Marko Strukelj <mstrukel at redhat.com>
> wrote:
>
>> It depends on what SPIs you implement. Just open Keycloak project in an
>> IDE, and search for jboss-deployment-structure.xml. You'll find examples
>> under 'examples' directory.
>>
>> On Mon, Oct 2, 2017 at 12:43 PM, Alik Elzin <kilaka at gmail.com> wrote:
>>
>>> Dependent on what other modules? How do I know what?
>>> Is there a sample provider project with the `
>>> jboss-deployment-structure.xml` file?
>>>
>>>
>>> On Mon, Oct 2, 2017 at 12:44 PM, Marko Strukelj <mstrukel at redhat.com>
>>> wrote:
>>>
>>>> I think the proper location in this case is actually
>>>> 'standalone/deployments'.
>>>>
>>>> You'll probably need to add jboss-deployment-structure.xml to your jar
>>>> to declare dependencies on other modules.
>>>>
>>>> On Mon, Oct 2, 2017 at 7:11 AM, Alik Elzin <kilaka at gmail.com> wrote:
>>>>
>>>>> In Keycloak's documentation
>>>>> <http://www.keycloak.org/docs/3.2/server_development/topics/
>>>>> providers.html>,
>>>>> it's stated that in order to deploy the provider, I can
>>>>>
>>>>> copy your provider jar to the Keycloak deploy/ directory, your provider
>>>>> will automatically be deployed.
>>>>>
>>>>> I'm indeed searching for a simple copy-paste way to deploy a provider
>>>>> without CLI nor through maven.
>>>>>
>>>>> The problem is that I can't find any /deploy folder in keycloak's
>>>>> server :(
>>>>>
>>>>> Below is the result for searching files/folders with the word deploy.
>>>>>
>>>>> *Any idea how to simply deploy the an SPI project into Keycloak?*
>>>>>
>>>>> Thanks.
>>>>>
>>>>> * Also posted the question in SO:
>>>>> https://stackoverflow.com/questions/46410244/how-to-deploy-a
>>>>> -keycloaks-spi-project-using-the-keycloak-deployer-deploy
>>>>>
>>>>> [image: enter image description here] <https://i.stack.imgur.com/5T9
>>>>> e6.png>
>>>>> _______________________________________________
>>>>> keycloak-user mailing list
>>>>> keycloak-user at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>>
>>>>
>>>>
>>>
>>
>


More information about the keycloak-user mailing list