順番滅茶苦茶ですが、Eclipseでscalaのプロジェクトを作成するには、[File]->[New]->[Other]で新規作成ダイアログを出し、[Maven]->[Maven Project]を選択します。
次の画面は、[Next]。次の画面で、archetypeを選択するのですが、[org.scala-tools.archetypes][scala-archetype-simple]を選択しています。この辺ggっても情報がないので、お勧めのarchetypeがあれば、教えてください。(汗
[Next]で、Group Id,Artifact Idを入れれば、作成できます。
ただし、問題があって、上記archetypeが、scala 2.8を対象にしているのに対して、Eclipse scala plug-inが2.9.1(現在)なので、scalatestとspecsのテストがエラーになってしまいます。これは、pom.xmlのバージョンを書きかえることで対処できます。
まず、コンパイラのバージョンを書き換えます。
<properties> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> <encoding>UTF-8</encoding> <scala.version>2.9.1</scala.version> </properties>
次に、テストスイートたちのバージョンを最新化します。
<dependency> <groupId>org.scala-tools.testing</groupId> <artifactId>specs_${scala.version}</artifactId> <version>1.6.9</version> <scope>test</scope> </dependency> <dependency> <groupId>org.scalatest</groupId> <artifactId>scalatest_2.9.1</artifactId> <version>1.6.1</version> <scope>test</scope> </dependency> </dependencies>
これで、プロジェクトを右クリックして[Maven]->[Update Project Configuration...]を行えば、エラーが消えるはずです。
面倒ですね。