Commit 4b37433
authored
util/maven: do not add dependency management when version is empty (#357)
Maven POMs may contain `<dependencyManagement>` entries without a
`version` field.
Previously, `ProcessDependencies` stored these versionless entries,
preventing dependency management with the actual version constraint to
be stored.
This PR updated `addDepManagement` in `util/maven/dependency.go` to
explicitly require `dep.Version != ""` before adding an entry to the
map.1 parent 7863f23 commit 4b37433
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
0 commit comments