i have updated my cucumber version after that it is giving following exception:
WARNING: You are using deprecated Main class. Please use io.cucumber
I managed to force IntelliJ-cucumber plugin template to use the suggested io.cucumber.core.api.cli.Main, and it works.