You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by rz...@apache.org on 2026/10/08 09:57:46 UTC

(opennlp) 01/01: GH-1445: Run the CI build once per job and render README.html from README.md only

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

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

commit 752f86aaae4aa095be9abf97efe2faf30ef5b884
Author: Richard Zowalla <rz...@apache.org>
AuthorDate: Thu Oct 8 11:57:39 2026 +0200

    GH-1445: Run the CI build once per job and render README.html from README.md only
    
    Listing both test and verify made Maven run the lifecycle twice, so every
    test suite ran twice per CI job. The markdown plugin in opennlp-distr now
    reads a copy of README.md instead of copying the whole repository tree.
---
 .github/workflows/maven.yml |  2 +-
 opennlp-distr/pom.xml       | 26 +++++++++++++++++++++++++-
 2 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 9b816c10c..2661a63f2 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -79,7 +79,7 @@ jobs:
         distribution: temurin
         java-version: ${{ matrix.java }}
     - name: Build with Maven
-      run: mvn -V clean test verify --show-version --batch-mode --no-transfer-progress -Pjacoco -Pci
+      run: mvn -V clean verify --show-version --batch-mode --no-transfer-progress -Pjacoco -Pci
     - name: Jacoco
       run: mvn jacoco:report
     # The binary distribution is pure-Java and platform-independent, so we build it
diff --git a/opennlp-distr/pom.xml b/opennlp-distr/pom.xml
index 754ed9bbe..1ecbcb9cc 100644
--- a/opennlp-distr/pom.xml
+++ b/opennlp-distr/pom.xml
@@ -113,6 +113,30 @@
 
   <build>
     <plugins>
+      <!-- Copy only README.md, so the markdown plugin does not copy the whole repository tree. -->
+      <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>copy-readme</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/readme</outputDirectory>
+              <resources>
+                <resource>
+                  <directory>${basedir}/..</directory>
+                  <includes>
+                    <include>README.md</include>
+                  </includes>
+                </resource>
+              </resources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>com.ruleoftech</groupId>
         <artifactId>markdown-page-generator-plugin</artifactId>
@@ -126,7 +150,7 @@
           </execution>
         </executions>
         <configuration>
-          <inputDirectory>${basedir}/../</inputDirectory>
+          <inputDirectory>${project.build.directory}/readme</inputDirectory>
           <outputDirectory>${basedir}/target</outputDirectory>
           <headerHtmlFile>${basedir}/README_HEADER.html</headerHtmlFile>
           <footerHtmlFile>${basedir}/README_FOOTER.html</footerHtmlFile>