From 33d9568e7f211ce4cd2e637fe6d1357ed7685923 Mon Sep 17 00:00:00 2001
From: maximthomas <maxim.thomas@gmail.com>
Date: Wed, 30 Oct 2024 09:48:58 +0000
Subject: [PATCH] fix build issue

---
 opendj-doc-generated-ref/pom.xml |   47 +++++++++++++++++++++--------------------------
 1 files changed, 21 insertions(+), 26 deletions(-)

diff --git a/opendj-doc-generated-ref/pom.xml b/opendj-doc-generated-ref/pom.xml
index a880de4..0da2a8a 100644
--- a/opendj-doc-generated-ref/pom.xml
+++ b/opendj-doc-generated-ref/pom.xml
@@ -548,32 +548,6 @@
                     </plugin>
 
                     <plugin>
-                        <artifactId>maven-antrun-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>copy-man-pages</id>
-                                <phase>package</phase>
-                                <goals>
-                                    <goal>run</goal>
-                                </goals>
-                                <configuration>
-                                    <tasks>
-                                        <copy todir="${project.build.directory}/asciidoc/source/man-pages">
-                                            <fileset dir="${basedir}/src/main/asciidoc/man-pages" includes="**/*" />
-                                        </copy>
-                                        <copy todir="${project.build.directory}/asciidoc/source/partials">
-                                            <fileset dir="${basedir}/src/main/asciidoc/man-pages" includes="**/*" />
-                                            <fileset dir="${project.build.directory}/asciidoc/source/man-pages" includes="**/*" />
-                                        </copy>
-                                        <delete>
-                                            <fileset dir="${project.build.directory}/asciidoc/source/man-pages" includes="man-*-subcommands-ref*" />
-                                        </delete>
-                                    </tasks>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                    <plugin>
                         <groupId>org.asciidoctor</groupId>
                         <artifactId>asciidoctor-maven-plugin</artifactId>
                         <version>2.2.6</version>
@@ -676,6 +650,27 @@
                         <artifactId>maven-antrun-plugin</artifactId>
                         <executions>
                             <execution>
+                                <id>copy-man-pages</id>
+                                <phase>prepare-package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <tasks>
+                                        <copy todir="${project.build.directory}/asciidoc/source/man-pages">
+                                            <fileset dir="${basedir}/src/main/asciidoc/man-pages" includes="**/*" />
+                                        </copy>
+                                        <copy todir="${project.build.directory}/asciidoc/source/partials">
+                                            <fileset dir="${basedir}/src/main/asciidoc/man-pages" includes="**/*" />
+                                            <fileset dir="${project.build.directory}/asciidoc/source/man-pages" includes="**/*" />
+                                        </copy>
+                                        <delete>
+                                            <fileset dir="${project.build.directory}/asciidoc/source/man-pages" includes="man-*-subcommands-ref*" />
+                                        </delete>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                            <execution>
                                 <id>zip-docs</id>
                                 <phase>package</phase>
                                 <configuration>

--
Gitblit v1.10.0