From f0d3fa783a98c78dd21ff9a48af9fc06be1fa4c5 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 24 Apr 2015 07:15:11 +0200 Subject: [PATCH 1/3] Moved docs into separate dist to reduce size of server-overlay --- distribution/docs-dist/assembly.xml | 33 +++++ distribution/docs-dist/build.xml | 122 ++++++++++++++++++ distribution/docs-dist/pom.xml | 55 ++++++++ .../src}/index.html | 0 distribution/examples-dist/assembly.xml | 1 + distribution/proxy-dist/assembly.xml | 11 ++ distribution/server-bundle-dist/assembly.xml | 8 ++ distribution/server-bundle-dist/pom.xml | 5 + distribution/server-overlay/assembly.xml | 18 +-- distribution/server-overlay/pom.xml | 2 +- 10 files changed, 237 insertions(+), 18 deletions(-) create mode 100755 distribution/docs-dist/assembly.xml create mode 100755 distribution/docs-dist/build.xml create mode 100755 distribution/docs-dist/pom.xml rename distribution/{examples-dist => docs-dist/src}/index.html (100%) diff --git a/distribution/docs-dist/assembly.xml b/distribution/docs-dist/assembly.xml new file mode 100755 index 0000000000..fa4b1b37cf --- /dev/null +++ b/distribution/docs-dist/assembly.xml @@ -0,0 +1,33 @@ + + docs-dist + + + zip + tar.gz + + + true + + + + ../../target/site/apidocs + javadocs + + + ../../services/target/apidocs + rest-api + + + ../../docbook/target/docbook/publish/en-US + userguide + + + + + + src/index.html + + + + + diff --git a/distribution/docs-dist/build.xml b/distribution/docs-dist/build.xml new file mode 100755 index 0000000000..96fce2314a --- /dev/null +++ b/distribution/docs-dist/build.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/distribution/docs-dist/pom.xml b/distribution/docs-dist/pom.xml new file mode 100755 index 0000000000..49f076a3ce --- /dev/null +++ b/distribution/docs-dist/pom.xml @@ -0,0 +1,55 @@ + + 4.0.0 + + keycloak-parent + org.keycloak + 1.2.0.RC1-SNAPSHOT + ../../pom.xml + + + keycloak-docs-dist + pom + Keycloak Docs Distribution + + + + + + keycloak-docs-${project.version} + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + maven-assembly-plugin + + + assemble + package + + single + + + + assembly.xml + + + target + + + target/assembly/work + + false + + + + + + + + diff --git a/distribution/examples-dist/index.html b/distribution/docs-dist/src/index.html similarity index 100% rename from distribution/examples-dist/index.html rename to distribution/docs-dist/src/index.html diff --git a/distribution/examples-dist/assembly.xml b/distribution/examples-dist/assembly.xml index a8c9ab2207..2d249b122f 100755 --- a/distribution/examples-dist/assembly.xml +++ b/distribution/examples-dist/assembly.xml @@ -4,6 +4,7 @@ zip + true diff --git a/distribution/proxy-dist/assembly.xml b/distribution/proxy-dist/assembly.xml index 98956797ea..89ba584249 100755 --- a/distribution/proxy-dist/assembly.xml +++ b/distribution/proxy-dist/assembly.xml @@ -4,8 +4,19 @@ zip + true + + + ../../ + + License.html + + + + + false diff --git a/distribution/server-bundle-dist/assembly.xml b/distribution/server-bundle-dist/assembly.xml index 1b4b99432e..49835001c2 100755 --- a/distribution/server-bundle-dist/assembly.xml +++ b/distribution/server-bundle-dist/assembly.xml @@ -6,6 +6,7 @@ tar.gz dir + true @@ -23,5 +24,12 @@ true + + + org.keycloak:keycloak-docs-dist:zip + + + true + diff --git a/distribution/server-bundle-dist/pom.xml b/distribution/server-bundle-dist/pom.xml index 0328d1c0ad..dc38e481ec 100755 --- a/distribution/server-bundle-dist/pom.xml +++ b/distribution/server-bundle-dist/pom.xml @@ -24,6 +24,11 @@ keycloak-examples-dist zip + + org.keycloak + keycloak-docs-dist + zip + diff --git a/distribution/server-overlay/assembly.xml b/distribution/server-overlay/assembly.xml index 8764a7d3ba..b0bfb1ad37 100755 --- a/distribution/server-overlay/assembly.xml +++ b/distribution/server-overlay/assembly.xml @@ -12,13 +12,9 @@ ${project.build.directory}/unpacked/wildfly-${wildfly.version} - **/standalone*.xml + standalone/configuration/standalone*.xml - - ${project.build.directory}/unpacked/docs - docs - ${project.build.directory}/unpacked/modules modules/system/layers/base @@ -37,18 +33,6 @@ - - ../../target/site/apidocs - docs/javadocs - - - ../../services/target/apidocs - docs/rest-api - - - ../../docbook/target/docbook/publish/en-US - docs/userguide - diff --git a/distribution/server-overlay/pom.xml b/distribution/server-overlay/pom.xml index a4ef9a04bc..97eb803a51 100755 --- a/distribution/server-overlay/pom.xml +++ b/distribution/server-overlay/pom.xml @@ -48,7 +48,7 @@ ${project.build.directory}/unpacked - **/standalone*.xml + */standalone/configuration/standalone*.xml From ac49ba2f44d80b19d06786aab759529f0172ca70 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 24 Apr 2015 07:30:59 +0200 Subject: [PATCH 2/3] More tweaks to dist --- .../assembly.xml | 3 +-- .../{server-bundle-dist => demo-dist}/pom.xml | 6 +++--- .../src/main/providers/README.txt | 0 .../src/main/themes/README.txt | 0 .../src/main/welcome-content/index.html | 0 .../src/main/xslt/standalone.xsl | 0 distribution/pom.xml | 12 ++++++++---- distribution/server-dist/assembly.xml | 11 +++++++++++ distribution/server-overlay/assembly.xml | 12 +++++------- distribution/subsystem-war/pom.xml | 3 --- pom.xml | 18 ++++++++++++++++++ 11 files changed, 46 insertions(+), 19 deletions(-) rename distribution/{server-bundle-dist => demo-dist}/assembly.xml (90%) rename distribution/{server-bundle-dist => demo-dist}/pom.xml (90%) rename distribution/{server-bundle-dist => demo-dist}/src/main/providers/README.txt (100%) rename distribution/{server-bundle-dist => demo-dist}/src/main/themes/README.txt (100%) rename distribution/{server-bundle-dist => demo-dist}/src/main/welcome-content/index.html (100%) rename distribution/{server-bundle-dist => demo-dist}/src/main/xslt/standalone.xsl (100%) diff --git a/distribution/server-bundle-dist/assembly.xml b/distribution/demo-dist/assembly.xml similarity index 90% rename from distribution/server-bundle-dist/assembly.xml rename to distribution/demo-dist/assembly.xml index 49835001c2..1b59337ac8 100755 --- a/distribution/server-bundle-dist/assembly.xml +++ b/distribution/demo-dist/assembly.xml @@ -1,10 +1,9 @@ - server-bundle-dist + demo-dist zip tar.gz - dir true diff --git a/distribution/server-bundle-dist/pom.xml b/distribution/demo-dist/pom.xml similarity index 90% rename from distribution/server-bundle-dist/pom.xml rename to distribution/demo-dist/pom.xml index dc38e481ec..e77212c9f9 100755 --- a/distribution/server-bundle-dist/pom.xml +++ b/distribution/demo-dist/pom.xml @@ -8,9 +8,9 @@ ../../pom.xml - keycloak-server-bundle-dist + keycloak-demo-dist pom - Keycloak Server Bundle Distribution + Keycloak Demo Distribution @@ -32,7 +32,7 @@ - keycloak-${project.version} + keycloak-demo-${project.version} maven-assembly-plugin diff --git a/distribution/server-bundle-dist/src/main/providers/README.txt b/distribution/demo-dist/src/main/providers/README.txt similarity index 100% rename from distribution/server-bundle-dist/src/main/providers/README.txt rename to distribution/demo-dist/src/main/providers/README.txt diff --git a/distribution/server-bundle-dist/src/main/themes/README.txt b/distribution/demo-dist/src/main/themes/README.txt similarity index 100% rename from distribution/server-bundle-dist/src/main/themes/README.txt rename to distribution/demo-dist/src/main/themes/README.txt diff --git a/distribution/server-bundle-dist/src/main/welcome-content/index.html b/distribution/demo-dist/src/main/welcome-content/index.html similarity index 100% rename from distribution/server-bundle-dist/src/main/welcome-content/index.html rename to distribution/demo-dist/src/main/welcome-content/index.html diff --git a/distribution/server-bundle-dist/src/main/xslt/standalone.xsl b/distribution/demo-dist/src/main/xslt/standalone.xsl similarity index 100% rename from distribution/server-bundle-dist/src/main/xslt/standalone.xsl rename to distribution/demo-dist/src/main/xslt/standalone.xsl diff --git a/distribution/pom.xml b/distribution/pom.xml index 16cc9bee0c..d16e3b1257 100755 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -6,6 +6,7 @@ 1.2.0.RC1-SNAPSHOT ../pom.xml + Distribution Parent 4.0.0 @@ -24,14 +25,17 @@ + adapters - subsystem-war - modules + demo-dist + docs-dist examples-dist + modules proxy-dist - src-dist - server-overlay server-dist + server-overlay + src-dist + subsystem-war diff --git a/distribution/server-dist/assembly.xml b/distribution/server-dist/assembly.xml index 8cbea2dc7b..9aca8d8621 100755 --- a/distribution/server-dist/assembly.xml +++ b/distribution/server-dist/assembly.xml @@ -16,6 +16,7 @@ **/*.sh welcome-content/** docs/** + standalone/configuration/standalone*.xml @@ -26,6 +27,13 @@ 0755 + + ../server-overlay/target/unpacked/wildfly-${wildfly.version} + + + standalone/configuration/standalone*.xml + + src/main/welcome-content welcome-content @@ -41,6 +49,9 @@ org.keycloak:keycloak-server-overlay:zip + + standalone/configuration/standalone-keycloak.xml + true diff --git a/distribution/server-overlay/assembly.xml b/distribution/server-overlay/assembly.xml index b0bfb1ad37..26f4d8cf42 100755 --- a/distribution/server-overlay/assembly.xml +++ b/distribution/server-overlay/assembly.xml @@ -8,13 +8,6 @@ false - - ${project.build.directory}/unpacked/wildfly-${wildfly.version} - - - standalone/configuration/standalone*.xml - - ${project.build.directory}/unpacked/modules modules/system/layers/base @@ -36,6 +29,11 @@ + + ${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration/standalone.xml + standalone/configuration + standalone-keycloak.xml + ../subsystem-war/src/main/resources/META-INF/keycloak-server.json standalone/configuration diff --git a/distribution/subsystem-war/pom.xml b/distribution/subsystem-war/pom.xml index dcaa848f5e..a86119090d 100755 --- a/distribution/subsystem-war/pom.xml +++ b/distribution/subsystem-war/pom.xml @@ -15,9 +15,6 @@ Keycloak Subsystem Server WAR - - - auth-server diff --git a/pom.xml b/pom.xml index c0985079f3..4e0ff26cf4 100755 --- a/pom.xml +++ b/pom.xml @@ -920,6 +920,24 @@ ${project.version} zip + + org.keycloak + keycloak-server-dist + ${project.version} + zip + + + org.keycloak + keycloak-docs-dist + ${project.version} + zip + + + org.keycloak + keycloak-examples-dist + ${project.version} + zip + org.keycloak.subsystem keycloak-server From 1f49ae8a2f827774cd69773061af10e7a389dd44 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 24 Apr 2015 09:19:40 +0200 Subject: [PATCH 3/3] Updated xslts --- distribution/server-dist/assembly.xml | 18 +++--- distribution/server-dist/pom.xml | 26 ++++++++ .../server-dist/src/main/xslt/standalone.xsl | 61 +++++++++++++++++++ distribution/server-overlay/pom.xml | 4 +- .../src/main/xslt/standalone.xsl | 37 +++-------- 5 files changed, 106 insertions(+), 40 deletions(-) create mode 100755 distribution/server-dist/src/main/xslt/standalone.xsl diff --git a/distribution/server-dist/assembly.xml b/distribution/server-dist/assembly.xml index 9aca8d8621..bc972b15d9 100755 --- a/distribution/server-dist/assembly.xml +++ b/distribution/server-dist/assembly.xml @@ -16,7 +16,8 @@ **/*.sh welcome-content/** docs/** - standalone/configuration/standalone*.xml + standalone/deployments + standalone/deployments/* @@ -27,13 +28,6 @@ 0755 - - ../server-overlay/target/unpacked/wildfly-${wildfly.version} - - - standalone/configuration/standalone*.xml - - src/main/welcome-content welcome-content @@ -49,10 +43,12 @@ org.keycloak:keycloak-server-overlay:zip - - standalone/configuration/standalone-keycloak.xml - true + + + standalone/configuration/standalone-keycloak.xml + + diff --git a/distribution/server-dist/pom.xml b/distribution/server-dist/pom.xml index 9eacd09fae..c61330f3ce 100755 --- a/distribution/server-dist/pom.xml +++ b/distribution/server-dist/pom.xml @@ -53,6 +53,32 @@ + + org.codehaus.mojo + xml-maven-plugin + 1.0 + + + generate-resources + package + + transform + + + + + ${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration + src/main/xslt/standalone.xsl + + standalone*.xml + + ${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration + + + + + + maven-assembly-plugin diff --git a/distribution/server-dist/src/main/xslt/standalone.xsl b/distribution/server-dist/src/main/xslt/standalone.xsl new file mode 100755 index 0000000000..697ebb4803 --- /dev/null +++ b/distribution/server-dist/src/main/xslt/standalone.xsl @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE + h2 + + sa + sa + + + + + + + + + + + + true + auth + + + + + + + + + + + + \ No newline at end of file diff --git a/distribution/server-overlay/pom.xml b/distribution/server-overlay/pom.xml index 97eb803a51..c2b5f21a8f 100755 --- a/distribution/server-overlay/pom.xml +++ b/distribution/server-overlay/pom.xml @@ -48,7 +48,7 @@ ${project.build.directory}/unpacked - */standalone/configuration/standalone*.xml + */standalone/configuration/standalone.xml @@ -87,7 +87,7 @@ ${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration src/main/xslt/standalone.xsl - standalone*.xml + standalone.xml ${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration diff --git a/distribution/server-overlay/src/main/xslt/standalone.xsl b/distribution/server-overlay/src/main/xslt/standalone.xsl index 8973a4d71a..0180557725 100755 --- a/distribution/server-overlay/src/main/xslt/standalone.xsl +++ b/distribution/server-overlay/src/main/xslt/standalone.xsl @@ -1,22 +1,26 @@ + exclude-result-prefixes="xalan j ds dep k sec"> - + - + @@ -31,7 +35,7 @@ - + @@ -43,7 +47,7 @@ - + @@ -59,27 +63,6 @@ - - - - - - - - - - - - - - - - - - -