/ensime-maven

Generates .ensime config files for SBT projects

Primary LanguageScalaApache License 2.0Apache-2.0

Bountysource

ENSIME Maven Plugin

This maven plugin generates a .ensime file for use with an ENSIME server.

Installation

Configure your ~/.m2/settings.xml file so that maven is aware of the plugin group org.ensime.maven.plugins:

  <pluginGroups>
    <pluginGroup>org.ensime.maven.plugins</pluginGroup>
  </pluginGroups>

Generate .ensime file

(Optional) Download project sources and javadocs

The ensime-maven plugin will tell ensime about the location of source jars, but won't automatically download them for you. You can get maven to do this by running:

mvn dependency:sources && mvn dependency:resolve -Dclassifier=javadoc

Generate the .ensime file

To actually generate the .ensime file from your pom, run:

mvn ensime:generate

(Optional) Initial project compilation

To prevent some surprises when working with a new project in ensime, do a full compile before starting up ensime for the first time:

mvn compile test-compile