code: @Override
  	protected URI findResourceInWorkspace(IJavaProject javaProject, URI classpathUri) throws CoreException {
  		if (javaProject.exists()) {
  			String packagePath = classpathUri.trimSegments(1).path();
  			String fileName = classpathUri.lastSegment();
  			IPath filePath = new Path(fileName);
  			String packageName = isEmpty(packagePath) ? "" : packagePath.substring(1).replace('/', '.');
  			for (IPackageFragmentRoot packageFragmentRoot : javaProject.getAllPackageFragmentRoots()) {
  				IPackageFragment packageFragment = packageFragmentRoot.getPackageFragment(packageName);
  				if (isMavenResourceDirectory(packageFragment)) {
  					IResource packageFragmentResource = packageFragment.getResource();
  					if (packageFragmentResource instanceof IContainer) {
  						IFile file = ((IContainer) packageFragmentResource).getFile(filePath);
  						if (file.exists()) {
  							return createPlatformResourceURI(file);
  						}
  					}
  				}
  			}
  		}
  		return super.findResourceInWorkspace(javaProject, classpathUri);
  	}
docs: Before forwarding to
  {@link JdtClasspathUriResolver#findResourceInWorkspace(IJavaProject, URI)}
  this methods uses {@link #isMavenResourceDirectory(IPackageFragment)} to
  check if the given classpath URI references a resource in an excluded
  Maven resource directory.