KEYCLOAK-5700 Add option to build jarless Wildfly distro

Use via the following maven command:

mvn clean install -Pdistribution -Dkeycloak.provisioning.xml=server-provisioning-devel.xml
This commit is contained in:
Hynek Mlnarik 2017-10-18 15:03:25 +02:00
parent 3103e0fd0a
commit d01be82b35
5 changed files with 31 additions and 3 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>