mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-19 01:57:06 +01:00
improved pom analysis
Former-commit-id: 8da3f802dbf2c3d8cd63d07a1a0a5d984074f007
This commit is contained in:
@@ -294,6 +294,7 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
|
|||||||
if (artifactid != null) {
|
if (artifactid != null) {
|
||||||
foundSomething = true;
|
foundSomething = true;
|
||||||
dependency.getProductEvidence().addEvidence("pom", "artifactid", artifactid, Evidence.Confidence.HIGH);
|
dependency.getProductEvidence().addEvidence("pom", "artifactid", artifactid, Evidence.Confidence.HIGH);
|
||||||
|
dependency.getVendorEvidence().addEvidence("pom", "artifactid", artifactid, Evidence.Confidence.LOW);
|
||||||
}
|
}
|
||||||
//version
|
//version
|
||||||
final String version = interpolateString(pom.getVersion(), pomProperties);
|
final String version = interpolateString(pom.getVersion(), pomProperties);
|
||||||
@@ -313,6 +314,7 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
|
|||||||
if (pomName != null) {
|
if (pomName != null) {
|
||||||
foundSomething = true;
|
foundSomething = true;
|
||||||
dependency.getProductEvidence().addEvidence("pom", "name", pomName, Evidence.Confidence.HIGH);
|
dependency.getProductEvidence().addEvidence("pom", "name", pomName, Evidence.Confidence.HIGH);
|
||||||
|
dependency.getVendorEvidence().addEvidence("pom", "name", pomName, Evidence.Confidence.HIGH);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Description
|
//Description
|
||||||
|
|||||||
Reference in New Issue
Block a user