* instead of solving all the dependency for it.
*/
IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject(cpe.getPath().segment(0));
IJavaProject jp = JavaCore.create(p);
IRuntimeClasspathEntry[] entries = JavaRuntime.resolveRuntimeClasspathEntry(new RuntimeClasspathEntry(cpe), jp);
for (int j = 0; j < entries.length; j++) {
IRuntimeClasspathEntry e = entries[j];
//skip test-classes for included maven project.
boolean testClasses = e.getLocation()!=null && e.getLocation().endsWith("test-classes");
if (!(resolved.contains(e) || testClasses))
resolved.add(e);
}
/**
* end
*/
} else {
IRuntimeClasspathEntry e = new RuntimeClasspathEntry(cpe);
if (!resolved.contains(e)) {
resolved.add(e);
}
}
}