Am 04.05.2012 14:23, schrieb Peter Jungen:
> Hello everybody,
> 
> Im trying to
> -add larq to fuseki,
> -then from command line, build an lucene index for my dataset.
> 
> ..using jena-fuseki-0.2.2-incubating-20120329.050912-8-distribution
> and TDB 0.8.10.
> 
> Installed larq and fuseki via svn and maven, and added the patch to
> fuseki like so
> https://issues.apache.org/jira/browse/JENA-63?focusedCommentId=13151908&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13151908
> 
> on the fuseki package build (mvn clean package) an error occurs:
> ----start----
> Caused by:
> org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
> Missing:
> 1) org.apache.jena:jena-larq:jar:${ver.larq}
> ..
>   Path to dependency:
>         1) org.apache.jena:jena-fuseki:jar:0.2.2-incubating-SNAPSHOT
>         2) org.apache.jena:jena-larq:jar:${ver.larq}
> ----end----
> How do I resolve this?
> While Im asking about dependencies....
> 
> I packaged LARQ with
> mvn package
> The README in the larq folder instructs me to
> ------start-----
> To package LARQ and use the larq.larqbuilder and larq.larq commands run:
> 
>   mvn package -Pjar-with-dependencies
> ----end--
> I not sure how to use this Option (-P,--activate-profiles)? and give the
> dependencies..
> 
> When in the end hopefuly everything works, I hope this to build the
> index for my dataset..
> java -cp .:target/jena-larq-1.0.1-incubating-SNAPSHOT.jar
> larq.larqbuilder --larq=/home/peter/workspace/fuseki/larq-index
> --desc=/home/peter/workspace/fuseki/config-tdb.ttl
> Am I doing this right?
> 
> Regards
> Peter
> 
Hello Paolo,

thanks for the insight - and the patch!
I'd like to contribute, as far as I can.

>Mainly, checkout Fuseki, apply the patch (i.e. add
>LARQ dependency to Fuseki's pom.xml), mvn package it. Then show how to
>use larq.larqbuilder to create a new Lucene index, indexing some data
>from a TDB location.

The build goes smooth but then, but running

java -cp fuseki-server.jar larq.larqbuilder [..]

throws an exception java.lang.NoClassDefFoundError

There seems to be an dependency problem, the patch, adds lucene 3.5.0
to the .classpath file, while the repository loads lucene 3.6.0 as
included in fuseki; then there is a classpath to
lucene-core-3.6.0-sources.jar and
jena-larq-1.0.0-incubating-sources.jar, but no file on the repository.

I tried to fix that by adding the jars to the repository, adjusting the
pom.xml and .classpath manually, and package again, but that didnt work
out of course..

Regards
Peter

Reply via email to