From 038c4765a3028bf7a0b650689de63b479ca004a4 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 19 Apr 2017 13:58:39 +0200 Subject: [PATCH] KEYCLOAK-4764 Fixes for distribution --- .../adapter-feature-pack/pom.xml | 1 + .../server-feature-pack/assembly.xml | 39 ++++- .../feature-packs/server-feature-pack/pom.xml | 134 ++-------------- .../configuration/domain/subsystems.xml | 85 ++++++++++ .../configuration/domain/template.xml | 146 ++++++++++++++++++ .../configuration/host/host-master.xml | 127 +++++++++++++++ .../configuration/host/host-slave.xml | 117 ++++++++++++++ .../configuration/host/host.xml | 127 +++++++++++++++ .../configuration/host/subsystems.xml | 24 +++ .../configuration/standalone/template.xml | 2 +- .../configuration/domain/template.xml | 2 +- .../configuration/host/host-master.xml | 2 +- .../configuration/host/host-slave.xml | 2 +- .../resources/configuration/host/host.xml | 2 +- .../configuration/standalone/template.xml | 2 +- distribution/server-dist/pom.xml | 10 ++ pom.xml | 9 +- .../keycloak-infinispan.xml | 16 +- .../keycloak-infinispan2.xml | 16 +- 19 files changed, 709 insertions(+), 154 deletions(-) create mode 100755 distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/domain/subsystems.xml create mode 100755 distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/domain/template.xml create mode 100755 distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host-master.xml create mode 100755 distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host-slave.xml create mode 100755 distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host.xml create mode 100644 distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/subsystems.xml diff --git a/distribution/feature-packs/adapter-feature-pack/pom.xml b/distribution/feature-packs/adapter-feature-pack/pom.xml index cce4b0cce2..0a3bb68aba 100755 --- a/distribution/feature-packs/adapter-feature-pack/pom.xml +++ b/distribution/feature-packs/adapter-feature-pack/pom.xml @@ -79,6 +79,7 @@ org.wildfly.build wildfly-feature-pack-build-maven-plugin + ${wildfly.build-tools.version} feature-pack-build diff --git a/distribution/feature-packs/server-feature-pack/assembly.xml b/distribution/feature-packs/server-feature-pack/assembly.xml index 1fdde3f439..c118dec8e7 100644 --- a/distribution/feature-packs/server-feature-pack/assembly.xml +++ b/distribution/feature-packs/server-feature-pack/assembly.xml @@ -28,6 +28,43 @@ target/${project.build.finalName} + + configuration/** + + + + target/unpacked-themes/theme + content/themes + + + src/main/resources/identity/module + + **/** + + modules/system/layers/keycloak/org/jboss/as/product/${product.slot} + true + + + src/main/resources/identity + + product.conf + + content/bin + true + + + ${configDir} + + **/** + + configuration + + + ../../../ + + License.html + + content - + \ No newline at end of file diff --git a/distribution/feature-packs/server-feature-pack/pom.xml b/distribution/feature-packs/server-feature-pack/pom.xml index ab6cc7279c..92253a0874 100644 --- a/distribution/feature-packs/server-feature-pack/pom.xml +++ b/distribution/feature-packs/server-feature-pack/pom.xml @@ -74,126 +74,6 @@ - - maven-resources-plugin - - - copy-configuration - validate - - copy-resources - - - target/resources/configuration - - - src/main/resources/configuration - true - - - - - - copy-modules - validate - - copy-resources - - - target/resources/modules - - - src/main/resources/modules - - - - - - copy-content - validate - - copy-resources - - - target/resources/content - - - src/main/resources/content - - - - - - copy-identity - validate - - copy-resources - - - target/resources/content/bin - - - src/main/resources/identity - - **/product.conf - - true - - - - - - copy-identity-module - validate - - copy-resources - - - target/resources/modules/system/layers/keycloak/org/jboss/as/product/${product.slot} - - - src/main/resources/identity/module - true - - - - - - copy-themes - validate - - copy-resources - - - target/resources/content/themes - - - target/unpacked-themes/theme - - - - - - copy-license - validate - - copy-resources - - - target/resources/content - - - ../../../ - - License.html - - - - - - - - org.wildfly.build wildfly-feature-pack-build-maven-plugin @@ -206,11 +86,11 @@ compile feature-pack-build.xml - target/resources + org.apache.maven.plugins maven-assembly-plugin @@ -226,7 +106,6 @@ assembly.xml true - ${project.build.finalName} false target/ target/assembly/work @@ -247,8 +126,9 @@ + ${wildfly.build-tools.version} org.wildfly:wildfly-feature-pack - urn:jboss:domain:4.0 + src/main/resources/configuration @@ -265,7 +145,9 @@ wf11 - urn:jboss:domain:5.0 + ${wildfly11.build-tools.version} + org.wildfly:wildfly-feature-pack + src/main/resources-wf11/configuration @@ -303,6 +185,7 @@ + product @@ -312,8 +195,9 @@ + ${eap.build-tools.version} org.jboss.eap:wildfly-feature-pack - urn:jboss:domain:5.0 + src/main/resources-wf11/configuration diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/domain/subsystems.xml b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/domain/subsystems.xml new file mode 100755 index 0000000000..d2a8706699 --- /dev/null +++ b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/domain/subsystems.xml @@ -0,0 +1,85 @@ + + + + + + + + logging.xml + io.xml + jmx.xml + naming.xml + remoting.xml + request-controller.xml + security.xml + security-manager.xml + + + + logging.xml + bean-validation.xml + keycloak-datasources.xml + ee.xml + ejb3.xml + io.xml + keycloak-infinispan.xml + jaxrs.xml + jca.xml + jdr.xml + jmx.xml + jpa.xml + jsf.xml + mail.xml + naming.xml + remoting.xml + request-controller.xml + security.xml + security-manager.xml + transactions.xml + undertow.xml + keycloak-server.xml + + + + + logging.xml + bean-validation.xml + keycloak-datasources.xml + ee.xml + ejb3.xml + io.xml + keycloak-infinispan.xml + jaxrs.xml + jca.xml + jdr.xml + jgroups.xml + jmx.xml + jpa.xml + jsf.xml + mail.xml + mod_cluster.xml + naming.xml + remoting.xml + request-controller.xml + security.xml + security-manager.xml + transactions.xml + undertow.xml + keycloak-server.xml + + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/domain/template.xml b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/domain/template.xml new file mode 100755 index 0000000000..e7b5885177 --- /dev/null +++ b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/domain/template.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host-master.xml b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host-master.xml new file mode 100755 index 0000000000..f5d89ee791 --- /dev/null +++ b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host-master.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host-slave.xml b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host-slave.xml new file mode 100755 index 0000000000..f8695d71a0 --- /dev/null +++ b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host-slave.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host.xml b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host.xml new file mode 100755 index 0000000000..a5c9afbdcc --- /dev/null +++ b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/host.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/subsystems.xml b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/subsystems.xml new file mode 100644 index 0000000000..ada31ffc20 --- /dev/null +++ b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/host/subsystems.xml @@ -0,0 +1,24 @@ + + + + + + + jmx.xml + + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/standalone/template.xml b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/standalone/template.xml index e28a49ba48..7b13afe79e 100644 --- a/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/standalone/template.xml +++ b/distribution/feature-packs/server-feature-pack/src/main/resources-wf11/configuration/standalone/template.xml @@ -1,6 +1,6 @@ - + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/domain/template.xml b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/domain/template.xml index 7a9d6a0c17..e7b5885177 100755 --- a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/domain/template.xml +++ b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/domain/template.xml @@ -17,7 +17,7 @@ ~ limitations under the License. --> - + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host-master.xml b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host-master.xml index 6366860354..f5d89ee791 100755 --- a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host-master.xml +++ b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host-master.xml @@ -22,7 +22,7 @@ is also started by this host controller file. The other instance must be started via host-slave.xml --> - + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host-slave.xml b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host-slave.xml index e90b782f8d..f8695d71a0 100755 --- a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host-slave.xml +++ b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host-slave.xml @@ -17,7 +17,7 @@ ~ limitations under the License. --> - + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host.xml b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host.xml index 1dce732bec..a5c9afbdcc 100755 --- a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host.xml +++ b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/host/host.xml @@ -23,7 +23,7 @@ via host-slave.xml --> - + diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/standalone/template.xml b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/standalone/template.xml index 0a72df3d4c..c0cc9e578a 100644 --- a/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/standalone/template.xml +++ b/distribution/feature-packs/server-feature-pack/src/main/resources/configuration/standalone/template.xml @@ -17,7 +17,7 @@ ~ limitations under the License. --> - + diff --git a/distribution/server-dist/pom.xml b/distribution/server-dist/pom.xml index 9c75942549..57b9d52f41 100755 --- a/distribution/server-dist/pom.xml +++ b/distribution/server-dist/pom.xml @@ -42,6 +42,7 @@ org.wildfly.build wildfly-server-provisioning-maven-plugin + ${build-tools.version} server-provisioning @@ -113,6 +114,7 @@ + ${wildfly.build-tools.version} assembly.xml @@ -120,6 +122,13 @@ + + wf11 + + ${wildfly11.build-tools.version} + + + product @@ -128,6 +137,7 @@ + ${eap.build-tools.version} assembly.xml %regex[(providers.*)|(docs/contrib.*)|(docs/examples.*)|(docs/schema.*)] diff --git a/pom.xml b/pom.xml index d87336ea02..9fcf0f1266 100755 --- a/pom.xml +++ b/pom.xml @@ -42,10 +42,12 @@ 7.2.0.Final 10.0.0.Final + 1.1.3.Final 11.0.0.Alpha1 + 1.1.8.Final 7.1.0.Alpha1-redhat-16 + 1.1.8.Final 2.0.10.Final - 1.1.8.Final 1.1.0.Beta32 1.0.0.Beta14 @@ -1468,11 +1470,6 @@ liquibase-maven-plugin ${liquibase.version} - - org.wildfly.build - wildfly-feature-pack-build-maven-plugin - ${wildfly.build-tools.version} - org.wildfly.build wildfly-server-provisioning-maven-plugin diff --git a/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml b/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml index 0c969049c3..f779bcf19f 100755 --- a/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml +++ b/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml @@ -59,9 +59,6 @@ - - - @@ -75,7 +72,7 @@ - + @@ -111,24 +108,21 @@ - + - + - - - - + @@ -140,7 +134,7 @@ - + diff --git a/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan2.xml b/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan2.xml index f779bcf19f..0c969049c3 100755 --- a/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan2.xml +++ b/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan2.xml @@ -59,6 +59,9 @@ + + + @@ -72,7 +75,7 @@ - + @@ -108,21 +111,24 @@ - + - + + + + - + @@ -134,7 +140,7 @@ - +