Add support for detecting nested java archives (#77)

* with sb build app

* test nested jar support

* pin jdk version during parse test (but dont compare version)
This commit is contained in:
Alex Goodman
2020-07-15 07:42:35 -04:00
committed by GitHub
parent e8d11eec69
commit 66a16a67fd
22 changed files with 1285 additions and 620 deletions
@@ -3,9 +3,10 @@
package integration
import (
"github.com/anchore/imgbom/internal"
"testing"
"github.com/anchore/imgbom/internal"
"github.com/anchore/go-testutils"
"github.com/anchore/imgbom/imgbom/cataloger"
"github.com/anchore/imgbom/imgbom/pkg"
@@ -48,6 +49,7 @@ func TestLanguageImage(t *testing.T) {
pkgLanguage: pkg.Java,
pkgInfo: map[string]string{
"example-java-app-maven": "0.1.0",
"example-jenkins-plugin": "1.0-SNAPSHOT", // the jeninks HPI file has a nested JAR of the same name
},
},
{