Maven

This maven plugin generates a .ensime file and provides various convenience commands for interacting with ENSIME. The source code can be found at in it’s own project: ensime-maven.

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>

Then add the following to your pom file:

<distributionManagement>
  <snapshotRepository>
    <id>sonatype-nexus-snapshots</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  </snapshotRepository>
  <repository>
    <id>sonatype-nexus</id>
    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  </repository>
</distributionManagement>

<plugins>
  <plugin>
    <groupId>org.ensime.maven.plugins</groupId>
    <artifactId>ensime-maven</artifactId>
    <version>1.0.2</version>
  </plugin>
<plugins>

Generate .ensime file

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

mvn ensime:generate


[edit]