Skip to content

Commit 42a0cef

Browse files
committed
Lol, local is not github
1 parent 3bd1cc3 commit 42a0cef

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/main-jdk17-build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,16 @@ jobs:
7575
mvn apache-rat:check -Pci \
7676
-pl "$(echo "$IT_MODULES" | sed 's/:/!:/g')" \
7777
-B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
78+
# Pre-install tika-annotation-processor before any -T1C invocation:
79+
# annotationProcessorPaths resolves from the LOCAL REPO, not the reactor,
80+
# so parallel Maven schedules consumers before the processor's install
81+
# and the build races to "Could not find artifact tika-annotation-processor".
7882
# javadoc:aggregate is push-only: it is an aggregate-docs artifact, is
7983
# single-threaded, and javadoc breakage is caught on main within the hour;
8084
# PR pushes should not wait on it.
8185
- name: Build with Maven
8286
run: |
87+
mvn install -Pfast -pl :tika-annotation-processor -am -B -q
8388
mvn clean test install ${{ github.event_name == 'push' && 'javadoc:aggregate' || '' }} -Pci -T1C \
8489
-pl "$(echo "$IT_MODULES" | sed 's/:/!:/g')" \
8590
-B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
@@ -108,7 +113,7 @@ jobs:
108113
# jar-packaging reactor module, so -am cannot supply them. -Pfast keeps it
109114
# to ~3 min; the tests themselves run in the next step.
110115
- name: Install all modules (produces the plugin zips)
111-
run: mvn clean install -Pfast -T1C -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
116+
run: mvn install -Pfast -pl :tika-annotation-processor -am -B -q && mvn clean install -Pfast -T1C -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
112117
# apache-rat:check here too -- the build job no longer sees these modules,
113118
# so without this they would drop out of license checking entirely.
114119
- name: Run integration tests
@@ -143,7 +148,7 @@ jobs:
143148
# what puts each zip in the local repo. -Pfast (skipTests + rat/checkstyle/spotless
144149
# off) because the build job owns all of that; this job only needs the artifacts.
145150
- name: Install all modules (produces the plugin zips)
146-
run: mvn clean install -Pfast -T1C -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
151+
run: mvn install -Pfast -pl :tika-annotation-processor -am -B -q && mvn clean install -Pfast -T1C -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
147152
# -pl must name the leaf modules: tika-e2e-tests is an aggregator pom, and Maven does
148153
# not pull in a selected aggregator's children, so this job built two pom-only modules
149154
# and ran zero tests while reporting green.

.github/workflows/main-jdk17-locale-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
# forgetting only makes this job slower, it does not weaken it.
6060
- name: Build with Maven (tr_TR locale)
6161
run: |
62+
mvn install -Pfast -pl :tika-annotation-processor -am -B -q
6263
mvn clean test install -Pci -T1C \
6364
-pl '!:tika-pipes-es-integration-tests,!:tika-pipes-kafka-integration-tests,!:tika-pipes-opensearch-integration-tests,!:tika-pipes-s3-integration-tests,!:tika-pipes-solr-integration-tests' \
6465
-Duser.language=tr -Duser.country=TR \

.github/workflows/main-jdk17-windows-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ jobs:
6161
# The -Duser.* args MUST stay quoted: PowerShell splits an unquoted dotted
6262
# -D property before it reaches mvn, so the locale silently never applies
6363
# and the leftover fragment fails the build as an unknown lifecycle phase.
64-
run: mvn clean test install javadoc:aggregate -Pci -Pe2e -T1C "-Duser.language=de" "-Duser.country=DE" -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
64+
run: mvn install -Pfast -pl ":tika-annotation-processor" -am -B -q; mvn clean test install javadoc:aggregate -Pci -Pe2e -T1C "-Duser.language=de" "-Duser.country=DE" -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"

.github/workflows/main-jdk21-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
java-version: ${{ matrix.java }}
4141
cache: 'maven'
4242
- name: Build with Maven
43-
run: mvn clean test install javadoc:aggregate -Pci -T1C -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
43+
run: mvn install -Pfast -pl :tika-annotation-processor -am -B -q && mvn clean test install javadoc:aggregate -Pci -T1C -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"

.github/workflows/main-jdk25-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
java-version: ${{ matrix.java }}
4141
cache: 'maven'
4242
- name: Build with Maven
43-
run: mvn clean test install javadoc:aggregate -Pci -T1C -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
43+
run: mvn install -Pfast -pl :tika-annotation-processor -am -B -q && mvn clean test install javadoc:aggregate -Pci -T1C -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"

0 commit comments

Comments
 (0)