This is a long-standing annoyance caused by our need to shade a modern version 
of Guava into the code to avoid conflicting with the very old version in Hadoop.

Do you have the jena0-shaded-guava project open in Eclipse? The problem usually 
goes away if it is closed.


ajs6f
Chris Tomlinson wrote on 9/11/17 1:47 PM:
Hi,

I’m having a bit of a hassle getting eclipse Mars 4.5.2 to hook up properly 
with imports like:

import org.apache.jena.ext.com.google.common.cache.CacheBuilder ;
import org.apache.jena.ext.com.google.common.cache.CacheStats ;

I "git clone" jena and

    mvn clean install
    mvn eclipse:eclipse

and then import the various submodules as existing maven projects into eclipse. 
Once the imports complete there are a few of the submodules with syntax errors 
in eclipse centered on the shaded guava. The projects with errors all have

    jena-shaded-guava

as a project dependency in the .project and also a library reference to 
M2_REPO/com/google/guava/guava/21.0/guava-21.0.jar in the .classpath.

The jena repo and submodules build and test fine from the command line.

I’ve run maven update project on all of the jena projects and once the “update 
project” process completes the errors are cleared (a result of “clean projects” 
being checked) from all of the projects and then during the “building 
workspace” process the errors reappear one-by-one as the workspace is rebuilt.

I appreciate any ideas about what I’m stumbling on.

Thanks,
Chris


Reply via email to