<div dir="ltr">Oh, I saw that the keycloak-server.json on the testsuite did just that, sorry :)<div><br></div><div>Thanks for the help!</div></div><br><div class="gmail_quote"><div dir="ltr">Em qui, 23 de jul de 2015 às 11:56, Rodrigo Sasaki &lt;<a href="mailto:rodrigopsasaki@gmail.com">rodrigopsasaki@gmail.com</a>&gt; escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hm, is there a way for me to define a datasource on the keycloak-server.json?<div><br></div><div>I know I can specify the JNDI of the datasource I want to use, but can I configure one there too?</div></div><br><div class="gmail_quote"><div dir="ltr">Em qui, 23 de jul de 2015 às 11:52, Stian Thorgersen &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt; escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>&gt;<br>
&gt; To: &quot;Stian Thorgersen&quot; &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;<br>
&gt; Cc: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
&gt; Sent: Thursday, 23 July, 2015 4:50:06 PM<br>
&gt; Subject: Re: [keycloak-user] Deploy Keycloak from within IntelliJ IDEA<br>
&gt;<br>
&gt; Oh, I see.<br>
&gt;<br>
&gt; I am modifying the Keycloak code, the class works but it lacks a bit of<br>
&gt;  the flexibility I had when I could maintain my own standalone.xml<br>
&gt;<br>
&gt; I saw there is a way for me to run tests using a specific database, but is<br>
&gt; there a way for me to deploy it using a different database than the default<br>
&gt; H2? I couldn&#39;t see an option for it on the properties file you use to<br>
&gt; configure the server on startup.<br>
<br>
You can either pass system properties for it, that&#39;s what our tests do. Or edit the keycloak-server.json it uses directly.<br>
<br>
&gt;<br>
&gt; I realize this is a very specific case, but maybe there&#39;s a solution.<br>
<br>
Not really, we do it all the time ;)<br>
<br>
&gt;<br>
&gt; Thanks again,<br>
&gt; Rodrigo Sasaki<br>
&gt;<br>
&gt; Em qui, 23 de jul de 2015 às 04:55, Stian Thorgersen &lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;<br>
&gt; escreveu:<br>
&gt;<br>
&gt; &gt; Keycloak is not deployed as a WAR anymore, so there&#39;s no concept of<br>
&gt; &gt; deploying Keycloak to a WildFly server.<br>
&gt; &gt;<br>
&gt; &gt; Are you forking/modifying Keycloak code? If so have a look at<br>
&gt; &gt; <a href="https://github.com/keycloak/keycloak/blob/master/misc/Testsuite.md#keycloak-server" rel="noreferrer" target="_blank">https://github.com/keycloak/keycloak/blob/master/misc/Testsuite.md#keycloak-server</a>.<br>
&gt; &gt; There&#39;s KeycloakServer which contains a main method and can be ran directly<br>
&gt; &gt; from the IDE.<br>
&gt; &gt;<br>
&gt; &gt; If you&#39;re not modifying Keycloak code and just developing your own apps I<br>
&gt; &gt; recommend either spinning up a standalone KC server, or to use the<br>
&gt; &gt; server-overlay download and add it to the WildFly server you deploy your<br>
&gt; &gt; apps to (this is only recommended for development btw).<br>
&gt; &gt;<br>
&gt; &gt; ----- Original Message -----<br>
&gt; &gt; &gt; From: &quot;Rodrigo Sasaki&quot; &lt;<a href="mailto:rodrigopsasaki@gmail.com" target="_blank">rodrigopsasaki@gmail.com</a>&gt;<br>
&gt; &gt; &gt; To: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; Sent: Wednesday, 22 July, 2015 7:24:42 PM<br>
&gt; &gt; &gt; Subject: [keycloak-user] Deploy Keycloak from within IntelliJ IDEA<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hello everyone,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I haven&#39;t used Keycloak since version 1.0.2, which we have now in<br>
&gt; &gt; production.<br>
&gt; &gt; &gt; But now Keycloak has so many new features that we decided to migrate to<br>
&gt; &gt; the<br>
&gt; &gt; &gt; 1.3.1.Final<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; This is a very specific issue, maybe this has already been discussed<br>
&gt; &gt; before,<br>
&gt; &gt; &gt; and if it has I&#39;d like to ask you to direct me to that thread.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Anyways, I want to deploy Keycloak from within IntelliJ IDEA, on version<br>
&gt; &gt; &gt; 1.0.2 all I had to do was add an artifact of keycloak-server on the<br>
&gt; &gt; &gt; deployment and it was done, but that no longer exists and I don&#39;t seem to<br>
&gt; &gt; &gt; find a replacement for it.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; What I do now is add a step to execute a maven goal to package the war<br>
&gt; &gt; and I<br>
&gt; &gt; &gt; created an artifact based on that war to deploy it, it works fine but I<br>
&gt; &gt; &gt; believe there must be a simpler solution, and doing it like this I can&#39;t<br>
&gt; &gt; use<br>
&gt; &gt; &gt; JRebel to hot deploy my alterations as well.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Is there a way to do what I&#39;m trying to do? I&#39;ll be happy to provide you<br>
&gt; &gt; more<br>
&gt; &gt; &gt; information if necessary.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Cheers,<br>
&gt; &gt; &gt; Rodrigo Sasaki<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; keycloak-user mailing list<br>
&gt; &gt; &gt; <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt; &gt;<br>
&gt;<br>
</blockquote></div></blockquote></div>