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

After opening a Maven project, should first execute mvn clean validate. #1051

Closed
mozhuanzuojing opened this issue Nov 2, 2024 · 1 comment

Comments

@mozhuanzuojing
Copy link

Describe the bug
After opening a Maven project, you should first execute mvn clean validate.
Because some projects have additional dependencies defined in the POM that will be downloaded during the validate phase, and only then can the project be compiled.

To Reproduce
Steps to reproduce the behavior:

  1. Git clone https://github.com/eclipse-jdtls/eclipse.jdt.ls.git
  2. open it in vscode
  3. waiting vscode-java first build
  4. select org.eclipse.jdt.ls.target\org.eclipse.jdt.ls.tp.target . right key exec Reload Target Platform (from plugin Eclipse PDE support)
  5. waiting Eclipse PDE support second build
  6. see PROBLEMS output
    Expected behavior
    build seccuss!

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

  • OS: Windows 10
  • VS Code version: 1.95
  • Extension version 0.44.0

Screenshots
Image

Additional context

@testforstephen
Copy link
Collaborator

this extension does not have the direct relationship with the JDT language server. The purpose of this extension is to list basic maven plugins, goals and dependencies, and assist user to execute a goal. It does not make sense to make this extension to auto execute a maven build on first opening a project in workspace. It's the language server itself that should download all dependencies when it imports the project.

@testforstephen testforstephen closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2024
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