diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java index af86b1f38..bf4f8e9e7 100644 --- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java +++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/DefaultClasspathManagerDelegate.java @@ -137,7 +137,7 @@ void addClasspathEntries(IClasspathDescriptor classpath, IMavenProjectFacade fac } else { File artifactFile = a.getFile(); - if(artifactFile != null /*&& artifactFile.canRead()*/) { + if(artifactFile != null && artifactFile.exists()) { entry = classpath.addLibraryEntry(IPath.fromOSString(artifactFile.getAbsolutePath())); entry.setClasspathAttribute(IClasspathManager.TEST_ATTRIBUTE, addTestFlag ? "true" : null); }