Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use nightly builds of Scala 2.9 with maven?

Recently I wanted to try some of the new features in Scala 2.9 in a small project. I would like to use maven for building it. How can I tell Maven to use the latest nightly build of Scala 2.9? If someone knows how to do this with sbt instead of maven, that would be good too.

like image 478
Kim Stebel Avatar asked Feb 09 '11 11:02

Kim Stebel


1 Answers

You can try this repository:

http://www.scala-tools.org/repo-snapshots

with Scala version: 2.9.0-SNAPSHOT

Here is snippet for pom.xml:

<repositories>
    <repository>
        <id>scala-tools.org</id>
        <name>Scala-Tools Maven2 Repository</name>
        <url>http://scala-tools.org/repo-snapshots</url>
    </repository>
</repositories>

<pluginRepositories>
    <pluginRepository>
        <id>scala-tools.org</id>
        <name>Scala-Tools Maven2 Repository</name>
        <url>http://scala-tools.org/repo-snapshots</url>
    </pluginRepository>
</pluginRepositories>

and for sbt:

val scalaToolsSnapshots = "Scala Tools Snapshots" at "http://scala-tools.org/repo-snapshots/"
like image 51
tenshi Avatar answered Oct 14 '22 13:10

tenshi