Skip to content

Keep the basedir unset for a parent served from the project-local repository - #13213

Merged
gnodet merged 2 commits into
masterfrom
agent/parent-pomfile-master
Sep 21, 2026
Merged

gnodet merged 2 commits into
masterfrom
agent/parent-pomfile-master

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

Closes #13211. Forward-port of #13212, which has the description, including the two tests in WorkspaceParentProjectBuilderTest.

Verified: maven-core unit tests on master → 700 run, 0 failures. The maven-site-plugin IT check (62 passed) ran on the maven-4.0.x build.

…ository

The ReactorReader also answers for POMs it stored in .mvn/target/project-local-repo,
so a parent installed by an earlier build resolves from the WorkspaceRepository and
DefaultProjectBuilder treated it as a checkout, giving it a basedir inside the
repository. Only a POM of a project in this session is a checkout; anything else the
workspace serves is built like a repository artifact, with the file unset as on Maven 3.

Closes #13211
@slachiewicz slachiewicz added bug Something isn't working mvn4 labels Sep 20, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 20, 2026 20:32
@gnodet
gnodet merged commit 25be7b8 into master Sep 21, 2026
21 checks passed
@gnodet
gnodet deleted the agent/parent-pomfile-master branch September 21, 2026 04:07
@github-actions github-actions Bot added this to the 4.1.0 milestone Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working mvn4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repository-resolved parent gets a basedir inside the local repository under Maven 4

2 participants