This is my runner class:

@CucumberOptions(features = "src/test/resources/features/"
    ,plugin = {pretty})

public class Runner {

I don't have any issue with running using mvn. I don't get any step undefined error. This is only eclipse issue where it can't recognize the step def. I am using eclipse Version: 2020-12. I have converted my project to cucumber project as well. Please assist me if i am missing anything? Do i need to add any other jars? However i added this below dependency as well:


Still no luck.