Skip to content

Run install before generating the site - #490

Merged
ppkarwasz merged 1 commit into
trunkfrom
run-install-before-site
Aug 25, 2026
Merged

Run install before generating the site#490
ppkarwasz merged 1 commit into
trunkfrom
run-install-before-site

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

The deploy-site workflow fails to resolve the reactor's own 2.0.0-SNAPSHOT artifacts: the site lifecycle does not package any jars, so Maven falls back to remote repositories, where no snapshot repository is configured. Past runs only succeeded when the shared setup-java Maven cache happened to contain artifacts installed by a previous snapshot deploy job; any POM change rotates the cache key and breaks the build.

Setting install-required: true makes the reusable workflow run ./mvnw -Dmaven.test.skip install before site, so the site is generated against the jars of the commit being built. This matches what logging-log4j2 already does.

In the long term, the duplicate build could be avoided by adding a reference-artifact-name-style parameter to deploy-site-reusable.yaml (as in verify-reproducibility-reusable.yaml), so the site build can reuse the Maven repository produced by the build that deployed the snapshot.

The `site` lifecycle packages no jars, so the reactor's SNAPSHOT
dependencies only resolved when the shared Maven cache happened to
contain them from a previous snapshot deploy job.

Assisted-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zsFn1f2B32vcNoCeZSfn7
@ppkarwasz
ppkarwasz enabled auto-merge (squash) August 25, 2026 10:27
@ppkarwasz
ppkarwasz merged commit efdce83 into trunk Aug 25, 2026
17 of 18 checks passed
@ppkarwasz
ppkarwasz deleted the run-install-before-site branch August 25, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant