At the time of writing, we will be using Java 1.8, IntelliJ CE 2017.3 and Cucumber-JVM 2.3.1. You can either follow this post as you set up your project, or if you are looking to get started straight away, you can download a project template from our repository. Most commonly it does not have the required 3rd part dependencies such as. In this post, we are going to go through step-by-step what it is required to get a Cucumber-JVM project set up to the point where you can run it inside your IntelliJ IDE, as well as run via Maven. I have a JDK 1.7 project with a maven dependency to a local jar in my maven. All of this can be time-consuming and frustrating.
There are a number of dependencies and plugins to install and configure which might require a fair amount of searching StackOverflow and Cucumber repositories. Getting set up with Cucumber-JVM for the first time with an IDE can be a tricky thing to get right. Some internal packages are hidden by default unless you add this option to javac.