keycloak-aplcache

KEYCLOAK-5700 Add option to build jarless Wildfly distro Use

10/18/2017 11:03:25 AM

Details

diff --git a/distribution/pom.xml b/distribution/pom.xml
index a5f1fc7..fb50a95 100755
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -31,6 +31,10 @@
     <artifactId>keycloak-distribution-parent</artifactId>
     <packaging>pom</packaging>
 
+    <properties>
+        <keycloak.provisioning.xml>server-provisioning.xml</keycloak.provisioning.xml>
+    </properties>
+
     <modules>
         <module>adapters</module>
         <module>saml-adapters</module>
diff --git a/distribution/server-dist/pom.xml b/distribution/server-dist/pom.xml
index 334e2ee..8fde7e9 100755
--- a/distribution/server-dist/pom.xml
+++ b/distribution/server-dist/pom.xml
@@ -68,7 +68,7 @@
                         </goals>
                         <phase>compile</phase>
                         <configuration>
-                            <config-file>../server-provisioning.xml</config-file>
+                            <config-file>../${keycloak.provisioning.xml}</config-file>
                         </configuration>
                     </execution>
                 </executions>
diff --git a/distribution/server-overlay/pom.xml b/distribution/server-overlay/pom.xml
index b42f7e8..ecb1c2e 100755
--- a/distribution/server-overlay/pom.xml
+++ b/distribution/server-overlay/pom.xml
@@ -82,7 +82,7 @@
                         </goals>
                         <phase>compile</phase>
                         <configuration>
-                            <config-file>../server-provisioning.xml</config-file>
+                            <config-file>../${keycloak.provisioning.xml}</config-file>
                             <overlay>true</overlay>
                         </configuration>
                     </execution>
diff --git a/distribution/server-provisioning.xml b/distribution/server-provisioning.xml
index 4e4afd5..6d4c442 100644
--- a/distribution/server-provisioning.xml
+++ b/distribution/server-provisioning.xml
@@ -19,6 +19,6 @@
         <copy-artifact artifact="org.keycloak:keycloak-client-cli-dist:zip" to-location="" from-location="keycloak-client-tools"/>
     </copy-artifacts>
     <feature-packs>
-        <feature-pack groupId="org.keycloak" artifactId="keycloak-server-feature-pack" version="${project.version}"/>     
+        <feature-pack groupId="org.keycloak" artifactId="keycloak-server-feature-pack" version="${project.version}"/>
     </feature-packs>
 </server-provisioning>
diff --git a/distribution/server-provisioning-devel.xml b/distribution/server-provisioning-devel.xml
new file mode 100644
index 0000000..4fe832c
--- /dev/null
+++ b/distribution/server-provisioning-devel.xml
@@ -0,0 +1,24 @@
+<!--
+  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
+  ~ and other contributors as indicated by the @author tags.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<server-provisioning xmlns="urn:wildfly:server-provisioning:1.2" extract-schemas="true">
+    <copy-artifacts>
+        <copy-artifact artifact="org.keycloak:keycloak-client-cli-dist:zip" to-location="" from-location="keycloak-client-tools"/>
+    </copy-artifacts>
+    <feature-packs>
+        <feature-pack groupId="org.keycloak" artifactId="keycloak-server-feature-pack" version="${project.version}"/>
+    </feature-packs>
+</server-provisioning>