Geospatialweb is a project mainly written in JAVA and SCALA, it's free.
My conversion of geospatialweb to Maven/SBT project layout.
See example here: http://geosparql.org/.
Run a task like "package", "test", or just "compile" with either mvn or sbt.