Enhancement: resolve Maven versions from a parent POM’s `dependencyManagement` in the same repository
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 57/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
- 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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 4
- Forks
- 3
- Merge medio
- 1 d 22 h
- PR fusionados (30 d)
- 76
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de vibgrate/cli
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
Todos los issues de vibgrate/cli
Issues similares
-
documentation Entwickler
Dificultad 1/5 Menos de una hora Aptitud para principiantes 89/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:frontend bug ci-test level:low priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
skytuhua-org/Gen-V1#2974 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
area: cli area: core priority: P3 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
appandflow/stim#6736 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
naomiaro/waveform-playlist#973 ·
Los mantenedores suelen responder en 1 día