Skip to content

Conversation

@deathbeam
Copy link
Contributor

@deathbeam deathbeam commented Sep 29, 2025

Using git directory as last resort before defaulting to pom.xml is important for multi module maven projects. Example of structure:

pom.xml
submodule-a/pom.xml
submodule-b/pom.xml

If sumbodule-b depends on submodule-a (common pattern for dto/impl), the parent usually has info about linking the 2 projects (and without that go to definition etc will jump to compiled source that might not be present/up t date).

This structure is also fine and do not breaks jdtls:

my-project/pom.xml

e.g its fine if working directory is git repo root (and this pattern is also much less common than multi module maven projects that without this change break always).

Closes #4102

Using git directory as last resort before defaulting to pom.xml is
important for multi module maven projects. Example of structure:

pom.xml
submodule-a/pom.xml
submodule-b/pom.xml

If sumbodule-b depends on submodule-a (common pattern for dto/impl), the
parent usually has info about linking the 2 projects (and without that
go to definition etc will jump to compiled source that might not be
present/up t date).

This structure is also fine and do not breaks jdtls:

my-project/pom.xml

e.g its fine if working directory is git repo root (and this pattern is
also much less common than multi module maven projects that without this
change break always).

Closes neovim#4102

Signed-off-by: Tomas Slusny <[email protected]>
@deathbeam deathbeam force-pushed the fix-jdtls-root-marker branch from 25093c5 to 557d01d Compare September 29, 2025 19:19
@justinmk justinmk merged commit e978b3b into neovim:master Sep 29, 2025
5 of 6 checks passed
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.

default lsp rooter jdtls config is incorrect for multi module maven projects

2 participants