Install Cucumber-JVM

Cucumber-JVM consists of several modules (jars) that you can download from the public maven repo.

If you like living dangerously you can also get SNAPSHOT builds from the sonatype snapshot repo.


You will always need the cucumber-core module, which contains the main logic for parsing and executing your Gherkin feature files.

If you’re wondering what the latest Cucumber-JVM release is, check out the tags on Github.

The easiest is to grab the jars you need with Maven or Ant

Programming Language modules

In addition to cucumber-core you will also need a programming language-specific module, depending on what programming language you are using. The available programming language modules are:

Language/PlatformJar file
JavaScript (Rhino interpreter)cucumber-rhino
Python (Jython interpreter)cucumber-jython
Ruby (JRuby interpreter)cucumber-jruby

Dependency Injection modules for cucumber-java

If your programming language is Java you will be writing glue code (Step Definitions and Hooks) in plain old Java classes. Cucumber will create a new instance of each of your glue code classes before each Scenario. If all of your glue code classes have an empty constructor you don’t need anything else. However, most projects will benefit from a Dependency Injection module to organize your code better.

The available Dependency Injection modules are:

Dependency Injection ContainerJar file


There are several ways to run Gherkin Features with Cucumber-JVM:

RunnerJar file
Command Line Interfacecucumber-core
JUnit Runnercucumber-junit
Android Runnercucumber-android

The JUnit Runner lets you run Cucumber from any tool that understands JUnit. This includes IDEs (such ash IntelliJ or Eclipse) and build tools (such as Ant, Maven or Gradle).

Any build tool can execute command line programs (Cucumber’s Command Line Interface), so if you prefer this way to run your features you don’t need the cucumber-junit module.

This should help you pick the 2 or 3 modules you need. Let’s install them:

Manual download

You can browse your way to the modules you need in the Sonatype repository. Or you can search for them in Maven Central.


Installing the various cucumber-* modules in a Maven project is just a matter of adding them to your pom.xml file. Here is the minimal recommended setup:


You don’t have to explicitly add a dependency on cucumber-core as all the other packages depend on it.


Take a look at the cucumber-java-skeleton build.xml file.