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

Automatically import pom.xml if .java source code is opened in editor #753

Open
dsyer opened this issue Oct 20, 2021 · 2 comments
Open

Automatically import pom.xml if .java source code is opened in editor #753

dsyer opened this issue Oct 20, 2021 · 2 comments

Comments

@dsyer
Copy link

dsyer commented Oct 20, 2021

VSCode never generates .project and .classpath for the pom.xml files that are not wired up to the reactor build at the root (e.g. where there are standalone samples). I'm not sure it would be a good experience to always eagerly scan all directories for pom.xml and generate on startup, but it probably would be a good experience to do it on demand, e.g. when a .java source file is opened in an editor. AFAIK there is no way to force the metadata to be generated, except by opening the subdirectory as a top level project (it doesn't work to add it to the workspace of the top level directory).

@Eskibear
Copy link
Member

These files are not generated by VS Code Maven extension, but by Java extension.

See redhat-developer/vscode-java#618 and a WIP improvement eclipse-jdtls/eclipse.jdt.ls#1900

As for which projects to import, an ideal approach is to let user decide what to import. And that's also on the backlog of Java extension.

@Eskibear
Copy link
Member

/cc @jdneo who is working on related improvements.

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

2 participants