pom.xml reports non-resolvable parent POM error despite local repository having dependencies and IntelliJ IDEA resolving correctly
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 32/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java, typescript, vscode
- Lĩnh vực
- build-system, developer-experience, tooling
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện các lỗi phân giải dependency và điều hướng mã nguồn trong VSCode bằng các giá trị settings.json được cung cấp, pom.xml của dự án và tệp thực thi Maven được chỉ định. Kiểm tra các log chi tiết và chẩn đoán của extension để xác định liệu việc tải settings.xml hoặc bộ nhớ đệm dependency có liên quan hay không. Hoàn thành khi các dependency cục bộ hiện có được phân giải, việc tải source tuân theo cài đặt và điều hướng Java hoạt động không có lỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When using the redhat-developer vscode-java extension in VSCode, I encounter errors in my pom.xml indicating that the parent POM cannot be resolved or dependencies are missing. However, the local Maven repository already contains the required artifacts, and opening the same project in IntelliJ IDEA works perfectly without any errors.
Interestingly, even in VSCode, the reported parent POM is clickable and can be opened normally, despite the error being displayed.
However, inside Java source files, classes, methods, and variables cannot be navigated (Go to Definition does not work), which suggests the Java project classpath is not being built correctly.
Details
- Error message example:
Non-resolvable parent POM for ... - Dependencies are present in the local Maven repository and not missing
- IntelliJ IDEA correctly resolves the parent POM and dependencies without issues
- VSCode plugin might not be correctly loading the custom
settings.xmlor there could be caching issues "java.maven.downloadSources": truesetting does not seem to take effect; source code is not downloaded- Maven version 3.6.3 is installed at
/Users/yuxuan/SoftWare/maven/apache-maven-3.6.3/bin/mvnon macOS
Relevant settings.json snippet
{
"java.maven.downloadSources": true,
"maven.executable.path": "/Users/yuxuan/SoftWare/maven/apache-maven-3.6.3/bin/mvn",
"java.configuration.maven.userSettings": "/Users/yuxuan/SoftWare/maven/apache-maven-3.6.3/conf/settings.xml"
}
Expected behavior
The plugin should correctly recognize existing dependencies in the local Maven repository without throwing resolution errors
It should properly load and apply the user-specified settings.xml
Source downloading should work as configured
Provide more detailed logs or diagnostics to help troubleshoot issues
Thank you for your hard work and support. Looking forward to a fix.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.3k
- Fork
- 547
- Merge trung bình
- 5 giờ 36 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của redhat-developer/vscode-java
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
redhat-developer/vscode-java#4511 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
redhat-developer/vscode-java#4426 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
redhat-developer/vscode-java#4506 · 6 bình luận · 4 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
redhat-developer/vscode-java#4505 · 5 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
redhat-developer/vscode-java#4504 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của redhat-developer/vscode-java
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
StabilityNexus/Fate-EVM-Frontend#153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
code-yeongyu/oh-my-openagent#9039 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Tencent/teamai-cli#862 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue hacktoberfest redis
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
libredb/libredb-studio#1164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flake
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
coder/xum#4920 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày