gnodet opened a new pull request, #21985:
URL: https://github.com/apache/camel/pull/21985

   ## Summary
   
   Fixes a flaky CI failure where the jandex-maven-plugin fails with 
`IllegalStateException: Archive .../target/classes is not a file` during 
parallel reactor builds.
   
   **Root cause**: In parallel builds (SmartBuilder), Maven resolves reactor 
dependencies to `target/classes` directories instead of JAR files. The jandex 
plugin's `ArchiveScanner` only accepts JAR files, causing intermittent failures.
   
   **Fix**:
   - Move jandex and metadata generation phases from `generate-resources` to 
`prepare-package` in `camel-test-infra-all`, ensuring all reactor dependencies 
have their JARs available
   - Make `CamelTestInfraGenerateMetadataMojo.classExistsInDependency()` handle 
both JARs and directories, so it works correctly with reactor-resolved artifacts
   
   ## Test plan
   
   - [x] Verified `camel-package-maven-plugin` compiles successfully
   - CI will validate the fix against the parallel build


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to