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