Skip to content

Recognize submodules with alternative pom.xml (not in subfolders) #1080

@barulheira

Description

@barulheira

Describe the bug
In a modular project, when a submodule is especified not in a subfolder but in an alternative pom.xml, such as "java.xml", the IDE does not recognize its Java source folders. Autocomplete does not work, etc.

To Reproduce
Create a modular Maven project. Create a submodule with a pom.xml file called "java.xml", pointing its java source folders to inside the main project folder. Put some Java files in there.

Expected behavior
Opening those Java files, the IDE recognizes them in context, autocomplete works fine. Those Java classes become available to other submodules which point to this one.

Environments (please complete the following information as much as possible):

  • OS: FreeBSD
  • VS Code version: 1.99
  • Extension version 0.44.0

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