Hi Dave

David Patterson wrote:
> Paolo,
> 
> I have not had much luck getting Eclipse and Maven to work together.
> It is probably some failing on my part. I hear it is wonderful, but
> have never gotten all of the little bits to line up properly. Sigh.

I strongly recommend to use Maven (or any other tool you like which can
read stuff from the Apache Snapshots repository) if you want to try/test
SNAPSHOTs. Managing transitive dependencies manually is not what you
should do (and it's only going to cause you pain and problems).

Instructions on how to install Maven are here (very easy):
http://maven.apache.org/download.html#Installation
You do not need any Maven plugin for Eclipse.

Once you have Maven installed, verify with:

  mvn -version

If you use Eclipse, it is recommended to set M2_REPO in Eclipse (once):

  mvn -Declipse.workspace=/path/to/your/workspace eclipse:add-maven-repo

You can run mvn eclipse:eclipse to re-generate Eclipse .project and .classpath
files automatically from your pom.xml file.

You can run mvn dependency:copy-dependencies to copy all the *.jar files in
the target/dependency/ directory.

You can run mvn dependency:tree to visualize a tree of all the dependency and
understand which jar is required by other jar files.

You can import the project in Eclipse via
File > Import... > Existing Projects into Workspace

Alternative, wait a few more days and download the next binary distribution
with all the jar files in it.

> 
> I'm using the apache-jena-tdb-0.9.0-incubating-SNAPSHOT folder. From
> the lib directory, I'm using all the jars (probably several I don't
> need)
> commons-codec-1.5.jar
> hamcrest-core-1.1.jar
> httpclient-4.1.2.jar
> httpcore-4.1.3.jar
> icu4j-3.4.4.jar
> jena-arq-2.8.9-incubating-SNAPSHOT-tests.jar
> jena-arq-2.8.9-incubating-SNAPSHOT.jar
> jena-core-2.6.5-incubating-20111214.012702-44-tests.jar
> jena-core-2.6.5-incubating-SNAPSHOT.jar
> jena-iri-0.9.0-incubating-20111214.011241-28.jar
> jena-tdb-0.9.0-incubating-SNAPSHOT.jar
> junit-4.9.jar
> log4j-1.2.16.jar
> slf4j-api-1.6.4.jar
> slf4j-log4j12-1.6.4.jar
> xercesImpl-2.10.0.jar
> xml-apis-1.4.01.jar

According to org.apache.jena:jena-tdb:0.9.0-incubating-SNAPSHOT's pom.xml
file [1] you need jena-core version 2.7.0-incubating and jena-arq version
2.9.0-incubating.

Paolo

 [1] 
https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.9.0-incubating-SNAPSHOT/jena-tdb-0.9.0-incubating-20111215.030823-82.pom


> 
> and the ones I'm using from elsewhere are:
> commons-logging-1.1.1.jar
> concurrent.jar from a Jena 2.5.7/lib folder
> 
> That's all I'm using.  I was a bit surprised the concurrent jar was
> not included in the distribution's lib folder, so that would be the
> most suspect at the onset.
> 
> Dave P

Reply via email to