With M2Eclipse
History Key
- New content
Removed content
Recent Versions
Choose two versions to compare, or click the link to view it.
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
- issue tracker : m2eclipse-scala at assembla
- mailing-list : scala-ide-user
Install
- install m2eclipse
- install m2eclipse-scala itself :
- by dowloading the lastest version of the plugin into your eclipse/dropins directory
- or by update-site : http://alchim31.free.fr/m2e-scala/update-site/can change in the future (you can also use the dropins directory see below)
Installinstallm2eclipseinstallm2eclipse-scala, bydowloadingthe lastest version of the plugin into your eclipse/dropins directory- 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:
- Scala Only (no java)
- Scala depends of some java code
- Scala and Java cyclic dependency (configuration longer than mono direction scala -> java or java -> scala to compile under maven)
- Java main code and Scala for test
-
Custom Layout java + scala cyclic dependencies, java+scala under the same source folder
srcandtest(for test source folder). - Lift based project created from a shell created + imported project (used lift-archetype-basic 2.0-scala280-SNAPSHOT)
date Scala Eclipse Plugin m2eclipse m2eclipse-scala JVM comments 2010-06-05 2.8.0.RC3 0.10.0.20100209-0800 0.0.2.201006050953 64bit server 1.6.0_20-b02 2010-06-19 2.8.0.RC3 0.10.0.20100209-0800 0.1.0 64bit server 1.6.0_20-b02 2010-07-11 1.0.0-SNAPSHOT (tycho-reorg branch) 0.10.2.20100623-1649 0.2.1 64bit server 1.6.0_20-b02 2010-11-24 1.0.0-SNAPSHOT 0.12.0.20101115-1102 0.2.2 64bit 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