The announcement of Cucumber-JVM 2.0.0 introduced significant changes, including change of the Maven groupId. The Maven groupId was changed from info.cukes to io.cucumber.
The dependency till version 1.2.5 is mentioned below. The complete list of versions that use this are listed here.
<dependency> <groupId>info.cukes</groupId> <artifactId>cucumber-java</artifactId> <version>1.2.5</version> </dependency>
The dependency from version 2.0.0 to the latest 4.2.0 is mentioned below. The complete list of versions that use this are listed here.
<dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-java</artifactId> <version>4.2.0</version> </dependency>
The reason this was switched was due to Gherkin jars,used by Cucumber-JVM, which changed from info.cukes to io.cucumber from version 3.2.0 on wards. The info.cukes version of Gherkin is located here and the io.cucumber versions here.
It is very important not to mix up the two groupIds in the same POM. It should be same for all the cucumber jar dependencies.