开发者

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 ins开发者_高级运维tead of maven, that would be good too.


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/"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜