Skip to content

Java project failing to open with error "Non-resolvable parent pom" when the parent pom of the root project is a Maven submodule #4124

@idemockle

Description

@idemockle

Starting recently, I cannot load projects where the parent of the root pom.xml in the project specifies a parent pom that is also a module in the same project:

repo/
|-- pom.xml (parent section specifies <relativePath>./parent</relativePath>)
|-- parent/
    |-- pom.xml
|-- othermodule/
    |-- pom.xml (parent is the root pom.xml with no relativePath specified)

Projects that have the more usual structure (where the root pom.xml is the parent for all modules in the project) work fine, and I am able to build the projects without issue using maven from the command line. This issue entirely prevents me from using VS Code for Java projects as this is the standard project structure at my company.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions