- OpenJDK 11.
- Maven 3.6.0 or newer
- Docker 18.03 or newer (optional) if you want to run all tests
Eclair is packaged as a compressed archive with a launcher script. The archives are built deterministically so it's possible to reproduce the build and verify its equality byte-by-byte. To build the exact same artifacts that we release, you must use the build environment (OS, JDK, maven...) that we specify in our release notes.
To build the project and run the tests, simply run:
mvn packageNotes:
- This command will build all modules (core, node, gui).
- If the build fails, you may need to clean previously built artifacts with the
mvn cleancommand. - Some of the tests use Docker, so make sure your docker daemon is running.
- Archives can be found in the
targetfolder for each module.
Running tests takes time. If you want to skip them, use -DskipTests:
mvn package -DskipTestsYou can even skip the tests compilation with maven.test.skip:
mvn package -Dmaven.test.skip=trueTo only run the tests, run:
mvn testTo run tests for a specific class, run:
mvn test -Dsuites=*<TestClassName>To only build the eclair-node module, run:
mvn package -pl eclair-node -am -Dmaven.test.skip=trueTo install eclair-core into your local maven repository and use it in another project, run:
mvn clean install -pl eclair-core -am -Dmaven.test.skip=trueThe API doc is generated via slate and hosted on github pages. To make a change and update the doc follow the steps:
git checkout slate-doc- Install your local dependencies for slate, more info here
- Edit
source/index.html.mdand save your changes. - Commit all the changes to git, before deploying the repo should be clean.
- Push your commit to remote.
- Run
./deploy.sh - Wait a few minutes and the doc should be updated at https://acinq.github.io/eclair