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

rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opennlp-models.git

commit 2d7a30cefbcf45f437097bb296c0b4578b7b0fa8
Author: Richard Zowalla <[email protected]>
AuthorDate: Mon Jun 24 08:16:42 2024 +0200

    Configure JavaDoc Plugin to avoid build issues in release case
---
 pom.xml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/pom.xml b/pom.xml
index 5b93333..5104f71 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,6 +108,7 @@
                <compiler.plugin.version>3.10.1</compiler.plugin.version>
                <build-helper.plugin.version>3.6.0</build-helper.plugin.version>
                <exec.plugin.version>3.3.0</exec.plugin.version>
+               <javadoc.plugin.version>3.5.0</javadoc.plugin.version>
        </properties>
 
        <build>
@@ -223,6 +224,29 @@
                                        </execution>
                                </executions>
                        </plugin>
+                       <plugin>
+                               <artifactId>maven-javadoc-plugin</artifactId>
+                               <version>${javadoc.plugin.version}</version>
+                               <configuration>
+                                       <doclint>none</doclint>
+                                       <source>${java.version}</source>
+                                       <sourcepath>src/main/java</sourcepath>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>create-javadoc-jar</id>
+                                               <goals>
+                                                       <goal>jar</goal>
+                                               </goals>
+                                               <phase>package</phase>
+                                               <configuration>
+                                                       <show>public</show>
+                                                       <quiet>false</quiet>
+                                                       <use>false</use> <!-- 
Speeds up the build of the javadocs -->
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
        </build>
 

Reply via email to