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,7 +287,6 @@ 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);
|
||||||
@@ -296,9 +295,6 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
for (String path : pomEntries) {
|
for (String path : pomEntries) {
|
||||||
Properties pomProperties = null;
|
Properties pomProperties = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user