Hi,
I've tried to do the same (i.e. a couple of trivial examples) with Scala.
This is what I needed to add to the pom.xml file:
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.9.1</version>
</dependency>
To compile the stuff in src/main/scala I added this plugin:
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
Then, I was able to compile everything and get all the dependencies (as usual):
mvn clean compile dependency:copy-dependencies
Finally, I run with:
scala -classpath target/classes:target/dependency/*
src/main/scala/hello_jena.scala
I also wanted to try the http://www.scala-ide.org/ (but it requires Eclipse
version 3.6.2 or 3.7).
Now I have a good reason to upgrade Eclipse. :-)
As Andy already pointed out:
https://github.com/afs/LD-Access uses Scala with Apache Jena
See also (in the Experimental! area):
https://svn.apache.org/repos/asf/incubator/jena/Experimental/JenaPerf/trunk/
which uses Scala with Apache Jena.
Paolo