Skip to content

fix(java): resolve maven pom property placeholders in parent coords#234

Merged
anistark merged 1 commit into
mainfrom
feat/maven-pom-property-resolution
Jul 12, 2026
Merged

fix(java): resolve maven pom property placeholders in parent coords#234
anistark merged 1 commit into
mainfrom
feat/maven-pom-property-resolution

Conversation

@anistark

Copy link
Copy Markdown
Owner

Dependency versions like ${project.version} leaked into reports as literal placeholders, and a parent declared with a CI-friendly ${revision} version produced a bogus Maven Central URL, so the license lookup fell back to Unknown instead of following the parent chain.

Property resolution now includes the Maven built-in project.* properties derived from the POM's own and parent coordinates (following Maven's inheritance rules), so sibling-module deps versioned as ${project.version} resolve in scans and in the transitive walk. Parent coordinates are property-resolved before fetching, and when the parent version stays unresolvable (${revision} defined only in the parent POM itself) it falls back to the child's own version, which such reactors share; a wrong guess just fails the fetch, which is where the raw placeholder ended up anyway.

Dependency versions like `${project.version}` leaked into reports as literal placeholders, and a parent declared with a CI-friendly `${revision}` version produced a bogus Maven Central URL, so the license lookup fell back to Unknown instead of following the parent chain.

Property resolution now includes the Maven built-in `project.*` properties derived from the POM's own and parent coordinates (following Maven's inheritance rules), so sibling-module deps versioned as `${project.version}` resolve in scans and in the transitive walk. Parent coordinates are property-resolved before fetching, and when the parent version stays unresolvable (`${revision}` defined only in the parent POM itself) it falls back to the child's own version, which such reactors share; a wrong guess just fails the fetch, which is where the raw placeholder ended up anyway.
@anistark
anistark merged commit 761534b into main Jul 12, 2026
3 checks passed
@anistark
anistark deleted the feat/maven-pom-property-resolution branch July 12, 2026 07:58
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

Successfully merging this pull request may close these issues.

1 participant