fix: in some cases, try to use pom info to guess name and version to top level jar (#2080)

Otherwise, small renames like 'hudson-war-2.2.1.war' to 'hudson.war', would cause
syft to incorrectly catolog the archive.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
This commit is contained in:
William Murphy
2023-08-31 10:19:55 -04:00
committed by GitHub
parent cfebae27f5
commit 51d38f8e59
3 changed files with 91 additions and 3 deletions
@@ -0,0 +1,7 @@
FROM alpine:latest
RUN wget https://repo1.maven.org/maven2/org/jvnet/hudson/main/hudson-war/2.2.1/hudson-war-2.2.1.war
RUN mv hudson-war-2.2.1.war hudson.war