You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Maven dependencies versioned with ${project.version} are dropped from vg scan #659
resolveProperty in src/core-open/scanners/java-scanner.ts (around line 304) only substitutes keys from <properties>, so ${project.version}, ${project.parent.version} and ${project.groupId} are left as written. scanOneJavaProject (around line 597) then skips any dependency whose version still contains ${, so these rows disappear from vg scan and vg sbom export without any message.
What to do
Pass the project's own coordinates into property resolution: project.version, project.groupId, project.artifactId, project.parent.version, project.parent.groupId (with the existing parent fallback for version and groupId), plus the older pom.version / version aliases if cheap.
Explicit <properties> keys keep priority.
Add a fixture with a parent POM and two modules where one depends on the other through ${project.version}.
Acceptance
A sibling dependency written with ${project.version} appears as a row with the resolved version
${project.groupId} in a groupId resolves too
A version that inherits from <parent><version> resolves through ${project.version}
Unknown property references are still skipped as today
Confirmed. resolveProperty (line 304 of java-scanner.ts) only substitutes keys from <properties>, and scanOneJavaProject then drops any dependency whose version still contains ${ (line 597), so sibling-module dependencies vanish.
Suggestions:
Build a merged lookup before resolving: the POM's <properties> first, then project.version (falling back to parent.version), project.groupId (falling back to parent.groupId), project.artifactId, project.parent.version, project.parent.groupId, and the pom.* aliases. Explicit properties should win.
Resolve groupId as well as version; right now only the version is checked, so a ${project.groupId} key would also produce a strange row.
Keep the "skip if still unresolved" guard for genuinely unknown properties.
Activity
vibgrate-team commentedon Nov 12, 2026
Confirmed.
resolveProperty(line 304 ofjava-scanner.ts) only substitutes keys from<properties>, andscanOneJavaProjectthen drops any dependency whose version still contains${(line 597), so sibling-module dependencies vanish.Suggestions:
<properties>first, thenproject.version(falling back toparent.version),project.groupId(falling back toparent.groupId),project.artifactId,project.parent.version,project.parent.groupId, and thepom.*aliases. Explicit properties should win.groupIdas well asversion; right now only the version is checked, so a${project.groupId}key would also produce a strange row.We'll pick this up from the team side.
fix: resolve Maven ${project.version} sibling-module coordinates (#668)