Merge pull request #197 from ahi/master

Removes the test for default Maven repository directory.

Former-commit-id: cc261e0e6b54e169862118003bb639d52f5c94ba
This commit is contained in:
Jeremy Long
2015-02-18 20:17:17 -05:00

View File

@@ -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;