Я бы предложил удалить плагин maven-surefire-plugin
и добавить область видимости как test
в junit
и cucumber-junit
зависимости, как указано ниже
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
Теперь найдите каталог root проекта в команде и попробуйте команду ниже
mvn test