mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +01:00
Merge pull request #197 from ahi/master
Removes the test for default Maven repository directory. Former-commit-id: cc261e0e6b54e169862118003bb639d52f5c94ba
This commit is contained in:
@@ -287,15 +287,11 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
}
|
}
|
||||||
File externalPom = null;
|
File externalPom = null;
|
||||||
if (pomEntries.isEmpty()) {
|
if (pomEntries.isEmpty()) {
|
||||||
if (dependency.getActualFilePath().matches(".*\\.m2.repository\\b.*")) {
|
String pomPath = dependency.getActualFilePath();
|
||||||
String pomPath = dependency.getActualFilePath();
|
pomPath = pomPath.substring(0, pomPath.lastIndexOf('.')) + ".pom";
|
||||||
pomPath = pomPath.substring(0, pomPath.lastIndexOf('.')) + ".pom";
|
externalPom = new File(pomPath);
|
||||||
externalPom = new File(pomPath);
|
if (externalPom.isFile()) {
|
||||||
if (externalPom.isFile()) {
|
pomEntries.add(pomPath);
|
||||||
pomEntries.add(pomPath);
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user