@@ -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.
0 commit comments