Skip to content

Latest commit

 

History

History
78 lines (51 loc) · 1.95 KB

BUILD.md

File metadata and controls

78 lines (51 loc) · 1.95 KB

Building eclair plugins

Requirements

Build eclair

Eclair plugins depend on eclair: you must first have a packaged version of eclair in your local maven repository (usually found in $HOME/.m2). Clone the version of eclair you're interested in (in most cases it will either be master or the latest release) and, in the eclair repository, run the following commands:

# Install eclair to your local maven repository:
mvn install -DskipTests
# Get the corresponding eclair version:
ECLAIR_VERSION=$(mvn help:evaluate -q -Dexpression=project.version -DforceStdout)

Build

Eclair plugins are packaged as jar files that contain an implementation of eclair's Plugin interface.

To build all plugins and run the tests, simply run:

mvn package

If you're using a version of eclair that is different from the version of eclair-plugins, you'll need to specify it explicitly:

mvn -Declair.version=$ECLAIR_VERSION package 

You can also change the eclair.version property in pom.xml.

Notes:

  • If the build fails, you may need to clean previously built artifacts with the mvn clean command.
  • Packaged plugins can be found in the target folder for each plugin.

Skip tests

Running tests takes time. If you want to skip them, use -DskipTests:

mvn package -DskipTests

Run tests

To only run the tests, run:

mvn test

To run tests for a specific class, run:

mvn test -Dsuites=*<TestClassName>

To run tests using a specific number of threads, run:

mvn -T <thread_count> test

Build specific plugins

To only build a specific plugin, run the previous commands directly in its directory:

cd plugin-name
mvn package