improve java name and version extraction as well as parent pkg pairing

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2020-10-30 08:12:25 -04:00
parent a5cba13ddf
commit 03dbfb8dfb
6 changed files with 107 additions and 24 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ type PomProperties struct {
// JavaManifest represents the fields of interest extracted from a Java archive's META-INF/MANIFEST.MF file.
type JavaManifest struct {
Main map[string]string `json:"main,omitempty"`
Sections map[string]map[string]string `json:"sections,omitempty"`
Main map[string]string `json:"main,omitempty"`
NamedSections map[string]map[string]string `json:"namedSections,omitempty"`
}
func (m JavaMetadata) PackageURL() string {