Recently re-built a Maven+scala environment, found a lot of things do not remember, and then re-record again.
If you have trouble building a problem, you can also download the official Scala environment http://scala-ide.org/download/sdk.html contains a lot of commonly used plugins, but does not use Maven but SBT, But in the domestic for some reason SBT speed is very slow, no FQ words or use maven good. If you use this IDE, you can start from 3 directly.
1, the first step of course is to download eclipse, I used in more than Luna version, the following is not known after the installation of various plug-ins, Eclipse plug-ins have a variety of installation methods, here to use the simple method, of course, will involve other methods. 2. Installing the Scala IDE plugin
Enter Help->eclipse Marketplace ..., search Scala to find plugins
Install. Within the component, play is used for Web pages and can be installed according to your needs. May wait for a period of time, the network speed is not good words may also fail several times, try a few times just fine. 3. Installing the Maven plugin Mars seems to have its own embedded maven and maven plugin, and if not, it can be installed manually. Like 2:
4, install Maven-scala plug-in theory, can be used here, but there is no support is too troublesome. On GitHub you can find a lot of good plug-ins, such as: https://github.com/sonatype/m2eclipse-scala/releases but it is the source code, you need to compile and then use. Download it and put it in workspace, select File->import...->maven->existing Maven Projects, select the project folder, OK. Then right-click the project, run As->maven build ... Use the command compile the package, then download the dependencies and compile. Wait. The jar package will then appear in the target folder under the directory of three sub-projects to find the org.maven.ide.eclipse.scala_xxx and org.maven.ide.eclipse.scala_feature_xxx two files , I used the 0.5.1 version, they are in the site sub-project, different versions may not be the same, look carefully. Copy them to the Dropins directory in the Eclipse directory to restart,
5. Create a new Scala project File->new->other->maven Project
Choose a archetype with Scala of course, if there is no archetype available, you can click Add Archetype ... in the lower right corner to add a usable one, such as:
That's it. 6. Define your own habit of using the archetype, which is described in another article
Eclipse's maven, Scala environment builds