Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pospisilf opened this issue Sep 27, 2024 · 0 comments

Comments

@pospisilf
Copy link

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
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

No branches or pull requests

1 participant