This is an automated email from the ASF dual-hosted git repository.

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git


The following commit(s) were added to refs/heads/master by this push:
     new d9e33e595 Fix the Javadoc publication
d9e33e595 is described below

commit d9e33e595d3b7fdfdeb3350eba63b2c0c827c398
Author: Andreas Veithen <[email protected]>
AuthorDate: Wed Sep 18 10:58:47 2024 +0100

    Fix the Javadoc publication
---
 apidocs/pom.xml | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)

diff --git a/apidocs/pom.xml b/apidocs/pom.xml
index eaab43c08..587619ace 100644
--- a/apidocs/pom.xml
+++ b/apidocs/pom.xml
@@ -89,23 +89,17 @@
                         <goals>
                             <goal>javadoc-no-fork</goal>
                         </goals>
-                        <configuration>
-                            
<outputDirectory>${project.build.directory}</outputDirectory>
-                        </configuration>
                     </execution>
                     <execution>
                         <id>site-javadoc</id>
-                        <phase>site</phase>
+                        <phase>pre-site</phase>
                         <goals>
                             <goal>javadoc-no-fork</goal>
                         </goals>
-                        <configuration>
-                            
<reportOutputDirectory>${project.reporting.outputDirectory}</reportOutputDirectory>
-                            <destDir>.</destDir>
-                        </configuration>
                     </execution>
                 </executions>
                 <configuration>
+                    
<outputDirectory>${project.build.directory}</outputDirectory>
                     <includeDependencySources>true</includeDependencySources>
                     <dependencySourceIncludes>
                         
<dependencySourceInclude>${project.groupId}:*</dependencySourceInclude>
@@ -120,6 +114,26 @@
                     </additionalOptions>
                 </configuration>
             </plugin>
+            <plugin>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy</id>
+                        <phase>site</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <configuration>
+                            
<outputDirectory>${project.reporting.outputDirectory}</outputDirectory>
+                            <resources>
+                                <resource>
+                                    
<directory>${project.build.directory}/apidocs</directory>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
             <plugin>
                 <artifactId>maven-assembly-plugin</artifactId>
                 <executions>

Reply via email to