fix: pom properties not setting artifact id (#1870)

Signed-off-by: James Neate <jamesmneate@gmail.com>
This commit is contained in:
James Neate
2023-06-12 09:59:14 -04:00
committed by GitHub
parent 2c5d64ac9e
commit 098c255a2d
2 changed files with 41 additions and 24 deletions
+3 -2
View File
@@ -68,8 +68,9 @@ func newPomProject(path string, p gopom.Project) *pkg.PomProject {
func newPackageFromPom(pom gopom.Project, dep gopom.Dependency, locations ...file.Location) pkg.Package {
m := pkg.JavaMetadata{
PomProperties: &pkg.PomProperties{
GroupID: resolveProperty(pom, dep.GroupID),
Scope: resolveProperty(pom, dep.Scope),
GroupID: resolveProperty(pom, dep.GroupID),
ArtifactID: resolveProperty(pom, dep.ArtifactID),
Scope: resolveProperty(pom, dep.Scope),
},
}