Hi Bruno, ajs6f, and Stian,

All most helpful. Following the writeup on "Using Jena with Eclipse", the key 
that I was missing was:

   closing the jena-shaded-guava project 

before running the maven project update.

It is good to know that the mvn eclipse:eclipse is not needed.

The remaining oddity at this point is a “Validating jena-core” process that 
seems to run very slowly around 73%:

  /jena-core/testing/ontology/dig/owl/basicq/test_12.query.xml
  /jena-core/testing/ontology/dig/owl/basicq/test_13.query.xml
  /jena-core/testing/ontology/dig/owl/basicq/test_14.query.xml
  . . .

and so on. I imagine there’s a way to inhibit running the validation initially. 
I’ve been cancelling the process and the workspace goes through another rebuild 
and the workspace seems mostly fine except that the Validating jena-core starts 
up again and there’s an error on the pom.xml in jena-fuseki.war:

    web.xml is missing and <failOnMissingWebXml> is set to true pom.xml 
/jena-fuseki-war        line 76 Maven Java EE Configuration Problem

which seems odd since the path in the pom.xml:

    <webXml>../jena-fuseki-core/src/main/webapp/WEB-INF/web.xml</webXml>

looks fine.

The second time that the “Validating jena-core” is cancelled it seems to stay 
stopped.

Thanks,
Chris


> On Sep 11, 2017, at 2:59 PM, Bruno P. Kinoshita <[email protected]> 
> wrote:
> 
> Hi Chris,
> 
> I used to forget how to fix this issue, so updated the docs for using Eclipse 
> to dev Jena.
> 
> https://jena.apache.org/tutorials/using_jena_with_eclipse.html 
> <https://jena.apache.org/tutorials/using_jena_with_eclipse.html>
> 
> Give it a try and let us know if we need to update the docs.
> 
> Cheers
> Bruno
> 
> Sent from Yahoo Mail on Android 
> <https://overview.mail.yahoo.com/mobile/?.src=Android>
> On Tue, 12 Sep 2017 at 5:47, Chris Tomlinson
> <[email protected]> wrote:
> 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