Version 19, last updated by David Bernard at Nov 30 22:15 2010 UTC

m2eclipse-scala

With m2eclipse and m2eclipse-scala you don't need to define maven-eclipse-plugin's configuration (you should avoid using both)

Features

m2eclipse-scala is a work in progress to ease integration between m2eclipse and scala-ide for eclipse.

What m2eclipse-scala do automaticly (on import / re-configure) ?

  • add scala nature to project if maven-scala-plugin is used in the pom.xml => add Scala-Library container
  • auto add "src/main/scala" and "src/test/scala"
  • remove of scala-library, scala-compiler, scala-dbc, scala-swing from "Maven Dependencies" Container (under eclipse only, you should not have 2 version of scala-library in the classpath)
  • re-order JRE Container and Scala Container (to avoid scala.ScalaObject NotFound and C° when use "Run As Scala Application")
  • add Scala-tools.org catalog

Support

Install

  1. install m2eclipse
  2. install m2eclipse-scala itself :
  3. Eclipse : File > import > maven > Existing Maven Project ...

If your project doesn't list "Scala Libraries" in Build Path (or in Package Explorer), try :

  • select project
  • right click > Maven 2 > Update Project Configuration

Working configuration

The plugin is "validated" by importing the samples projects into Eclipse:



dateScala Eclipse Pluginm2eclipsem2eclipse-scalaJVMcomments
2010-06-052.8.0.RC30.10.0.20100209-08000.0.2.20100605095364bit server 1.6.0_20-b02
2010-06-192.8.0.RC30.10.0.20100209-08000.1.064bit server 1.6.0_20-b02
2010-07-111.0.0-SNAPSHOT (tycho-reorg branch)0.10.2.20100623-16490.2.164bit server 1.6.0_20-b02
2010-11-241.0.0-SNAPSHOT0.12.0.20101115-11020.2.264bit server 1.6.0_20-b02

other solutions :

The following (older ?) solutions work without m2eclipse-scala, and are provide as fallback if you have some issue with m2eclipse-scala (in this case don't forgot to open a ticket)

  • Article to use scala and java using m2eclipse plugin and scala plugin