Skip to content

Declared package "xxx.yyy.zzz" does not match the expected package "src.main.xxx.yyy.zzz" on nested Maven project #3784

@pospisilf

Description

@pospisilf

I'm getting error in title for Maven my Maven project xxx.yyy.zzz. I have opened workspace with more folders and (from root) my Maven project path is src/main/xxx/yyy/zzz/File.java. When File.java is opened, error in title is shown. When I try to change my package declaration to src.main.xxx.yyy.zzz in an effort to at least get rid of the error temporary, error is raised again with switched values - Declared package "src.main.xxx.yyy.zzz" does not match the expected package "xxx.yyy.zzz" on nested Maven project.

Environment
  • Operating System: Mac OS 14.6.1
  • JDK version: 17.0.6
  • Visual Studio Code version: 1.93.0
  • Java extension version: 1.35.0
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[Please attach a sample project reproducing the error]
Please attach logs

Current Result
Expected Result
Additional Informations

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