diff --git a/distribution/src/main/assembly/dist.xml b/distribution/src/main/assembly/dist.xml
index c67950ea4c..ec2303be04 100644
--- a/distribution/src/main/assembly/dist.xml
+++ b/distribution/src/main/assembly/dist.xml
@@ -124,7 +124,7 @@
docs/api
- ../documentation/target/asciidoctor
+ ../documentation/target/dist
docs/reference
diff --git a/documentation/pom.xml b/documentation/pom.xml
index 31b005bb52..7cbd07c5a8 100644
--- a/documentation/pom.xml
+++ b/documentation/pom.xml
@@ -295,6 +295,27 @@
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ ${basedir}/src/main/assembly/dist.xml
+
+ false
+ dist
+ false
+
+
+
+ make-dist
+ prepare-package
+
+ single
+
+
+
+
@@ -302,6 +323,16 @@
documentation-pdf
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ ${basedir}/src/main/assembly/dist.xml
+ ${basedir}/src/main/assembly/pdf.xml
+
+
+
org.asciidoctor
asciidoctor-maven-plugin
@@ -329,43 +360,6 @@
-
- ch.mfrey.maven.plugin
- copy-maven-plugin
-
-
- copy
- install
-
- copy
-
-
-
-
- ${asciidoctor.base-output-dir}/pdf
- true
-
- index.pdf
-
-
-
- index.pdf
- hibernate_validator_reference.pdf
-
-
-
-
-
-
-
-
-
- org.codehaus.plexus
- plexus-utils
- 4.0.2
-
-
-
diff --git a/documentation/src/main/assembly/dist.xml b/documentation/src/main/assembly/dist.xml
new file mode 100644
index 0000000000..679f724037
--- /dev/null
+++ b/documentation/src/main/assembly/dist.xml
@@ -0,0 +1,21 @@
+
+
+
+ dist
+
+ dir
+
+ false
+
+
+
+
+ ${asciidoctor.base-output-dir}/html_single/
+ en-US/html_single/
+
+
+
diff --git a/documentation/src/main/assembly/pdf.xml b/documentation/src/main/assembly/pdf.xml
new file mode 100644
index 0000000000..c9f2bffaaa
--- /dev/null
+++ b/documentation/src/main/assembly/pdf.xml
@@ -0,0 +1,22 @@
+
+
+
+ pdf
+
+ dir
+
+ false
+
+
+
+
+ ${asciidoctor.base-output-dir}/pdf/index.pdf
+ en-US/pdf/
+ hibernate_validator_reference.pdf
+
+
+