Enhancement: resolve Maven versions from a parent POM’s `dependencyManagement` in the same repository
Maintainer thường phản hồi trong vòng 1 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
- 57/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java, typescript
Hướng nghiên cứu
Start with parsePom and mavenCoordinateReady in src/core-open/scanners/java-scanner.ts, then read test/fixtures/maven-multi-module, test/maven-multi-module.test.ts, and the relevant DOCS.md section. Add offline tests for parent and three level ancestor management, child version precedence, and missing or out of root parents; confirm existing vg build behavior remains deterministic. Done when scan and SBOM resolve the child versions as specified and DOCS.md describes the limitation and imported BOM scope.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- Difficulty: medium
- Area: Java / Maven / SBOM
Problem
This is already documented as a limitation, not an accident. DOCS.md says a version that exists only on a parent POM’s <dependencyManagement> is omitted on the child; the parent file may still have its own row for that pin. test/fixtures/maven-multi-module is a parent that pins commons-lang3 and gson, and a child app/pom.xml that lists both coordinates with no <version>. mavenCoordinateReady in src/core-open/scanners/java-scanner.ts (around lines 329–333, used around line 757) drops any coordinate without a concrete version. parsePom reads the parent’s coordinates for ${project.version} / ${project.groupId} but never opens the parent file (no relativePath walk) to copy managed versions onto the child.
vg scan and vg sbom export therefore miss the child’s direct dependencies in the usual multi-module layout. vg build keeps versionless coordinates on purpose (test/maven-multi-module.test.ts); this issue is about scan / SBOM versions, not the code map.
Expected behaviour
For a child POM in the same scan tree, load the parent via <relativePath> (default ../pom.xml) and, if needed, walk further ancestors still inside the scan root. Apply that chain’s <dependencyManagement> versions (and property resolution) to the child’s versionless <dependencies>. Do not fetch a parent from Maven Central. Do not treat a parent management pin as a dependency of the parent unless the parent itself declares it (keep today’s parent-row rule). Imported BOMs (<scope>import</scope>) can stay out of scope unless a follow-up is filed; say so in the docs. vg build may keep its versionless import edges; update DOCS.md so the scan column no longer says “Omitted on the child”.
Acceptance
- Offline tests using
test/fixtures/maven-multi-module(and a three-level ancestor case): the child reportscommons-lang3at3.17.0andgsonat2.11.0. - A child that already has a
<version>keeps it (child wins). - A missing parent file or a parent outside the scan root does not fail the scan; those versionless coordinates stay omitted.
vg buildremains deterministic and offline on the existing fixture.- DOCS.md is updated.
- Ngôn ngữ chính
- TypeScript
- Star
- 4
- Fork
- 3
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 vibgrate/cli
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
documentation Entwickler
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
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
Maintainer thường phản hồi trong vòng 1 ngày
-
area:frontend bug ci-test level:low priority:high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
skytuhua-org/Gen-V1#2974 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area: cli area: core priority: P3 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
appandflow/stim#6736 ·
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 76/100
naomiaro/waveform-playlist#973 ·
Maintainer thường phản hồi trong vòng 1 ngày