This maven plugin generates a .ensime
file for use with an ENSIME server.
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>
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
To actually generate the .ensime
file from your pom, run:
mvn ensime:generate
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