I am an absolute beginner with sbt and struggle to convert a maven pom
dependency into a working sbt dependency description.
This is the instruction from the neo4j manual on how to add the
embedded server as a dependency with maven:
<dependencies>
<dependency>
<groupId>
org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<version>${neo4j-version}</version>
</dependency>
<dependency>
<groupId>
org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<classifier>static-web</classifier>
<version>${neo4j-version}</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>neo4j-release-repository</id>
<name>Neo4j Maven 2 release repository</name>
<url>
http://m2.neo4j.org/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
The neo4j-server is added once plain and once with a classifier static-
web. I tried to do the same in my build.sbt
libraryDependencies ++= Seq("
org.neo4j.app" % "neo4j-server" % "1.5-
SNAPSHOT",
"
org.neo4j.app" % "neo4j-
server" % "1.5-SNAPSHOT" classifier "static-
web")
resolvers ++= Seq("neo4j-public-repository" at "http://
m2.neo4j.org")
However if I declare it that way, I can't compile my code because the
dependency to the plain neo4j-server jar doesn't seem to be
fullfilled.
If I remove the entry with the static-web classifier, I can compile
fine but have problem at runtime as all the resources of that package
are not available.
For me it looks like I can only have one of both in sbt. Any help on
how I can include both? BTW, is there an easy way to get a runtime
classpath printed to the console?
Thanks,
Markus