Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSnjezana Peco2018-11-22 16:10:46 -0500
committerSnjezana Peco2018-11-22 16:10:52 -0500
commitdc324f751412925fed8a69d9d7db7467470f9d60 (patch)
tree37145e06eba149bc390ae5d0392b3f941bc9a29b
parent25b27d33879c2f15692cfe89e76d5e06d97dd19c (diff)
downloadm2e-core-dc324f751412925fed8a69d9d7db7467470f9d60.tar.gz
m2e-core-dc324f751412925fed8a69d9d7db7467470f9d60.tar.xz
m2e-core-dc324f751412925fed8a69d9d7db7467470f9d60.zip
Bug 540700 - StackOverflowError in LocalProjectScanner
Change-Id: Ia364455308a690c712383892c8e97dd2a56974dc Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
index 983d2246..ff00f1d3 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/LocalProjectScanner.java
@@ -130,16 +130,16 @@ public class LocalProjectScanner extends AbstractProjectScanner<MavenProjectInfo
try {
baseDir = baseDir.getCanonicalFile();
- File pomFile = new File(baseDir, IMavenConstants.POM_FILE_NAME);
- if(!pomFile.exists()) {
- return null;
- }
-
if(!scannedFolders.add(baseDir)) {
return null; // we already know this project
//mkleint: well, if the project is first scanned standalone and later scanned via parent reference, the parent ref gets thrown away??
}
+ File pomFile = new File(baseDir, IMavenConstants.POM_FILE_NAME);
+ if(!pomFile.exists()) {
+ return null;
+ }
+
Model model = modelManager.readMavenModel(pomFile);
String pomName = modulePath + "/" + IMavenConstants.POM_FILE_NAME; //$NON-NLS-1$

Back to the top