Skip to content

resolve parent POM from r.a.o#578

Merged
hboutemy merged 1 commit into
masterfrom
staging-parent
Jun 27, 2026
Merged

resolve parent POM from r.a.o#578
hboutemy merged 1 commit into
masterfrom
staging-parent

Conversation

@hboutemy

Copy link
Copy Markdown
Member

give we do in general simultaneous vote on Apache parent and Maven parents, CI fails during the vote (Apache parent is not yet in Central)

use r.a.o to use staging Apache parent release to avoid this small during voting period

@hboutemy hboutemy added the build Pull requests that change the build process label Jun 27, 2026
@hboutemy hboutemy force-pushed the staging-parent branch 6 times, most recently from bb44483 to 8164d83 Compare June 27, 2026 05:28
@hboutemy

Copy link
Copy Markdown
Member Author

@slawekjaranowski I don't get how to configure the shared workflow to inject the settings: please help

@ascheman

Copy link
Copy Markdown
Contributor

The failure isn't in the settings.xml itself — it's in the shared workflow's Set up Maven step. That step bootstraps the wrapper with the system mvn (maven-wrapper-plugin:wrapper), and to do so Maven has to read the project model, i.e. resolve the parent org.apache:apache:39. But that step is the one Maven invocation in the pipeline that does not receive ${{ inputs.maven-args }}, so -s .github/settings.xml never reaches it and apache:39 (still only in staging during the vote) can't be resolved → the Non-resolvable parent POM you see, before the actual build runs.

That's also why the Jenkins job works: asfMavenTlpStdBuild(mavenArgs: …) passes the args to the whole build, with no separate wrapper-bootstrap step.

Proposed one-liner (two places) in the shared workflow: apache/maven-gh-actions-shared#271

Once that lands, the overrides here can shrink to just maven-args: '-s .github/settings.xml'ff-goal / ff-site-goal no longer need to repeat -s.

cc @slawekjaranowski

@hboutemy

Copy link
Copy Markdown
Member Author

there is now another step that has the same issue:

Run ./mvnw clean --errors --batch-mode --show-version "-Dmaven.clean.retryOnError"

@hboutemy hboutemy merged commit 9f05eb3 into master Jun 27, 2026
9 of 10 checks passed
@hboutemy hboutemy deleted the staging-parent branch June 27, 2026 09:40
@github-actions github-actions Bot added this to the 48 milestone Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull requests that change the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants