'What are dependencies required to integrate cucumber with Extent report and allure report?

I was able to generate extent report with ease by including below dependency for TDD framework using testng-

<dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports</artifactId>
    <version>3.0.0</version>
</dependency>

However I am now trying to implement it in BDD framework. but unable to do so. What dependencies and properties file I would need to implement Extent report in cucumber.

For allure report I have include below dependency -

<dependency>
    <groupId>io.qameta.allure</groupId>
    <artifactId>allure-cucumber-jvm</artifactId>
    <version>2.17.3</version>
</dependency>

and Runner file as -

@RunWith(Cucumber.class)
@CucumberOptions(
        features = "features"
        ,glue={"com.learnautomation.stepdefinitions"}
        ,plugin = {"pretty", "html:target/cucumber-report/index.html", "io.qameta.allure.cucumber6jvm.AllureCucumber6Jvm"}  ,
                monochrome = true
        ) 

Getting error as below - Could not load plugin class 'io.qameta.allure.cucumber6jvm.AllureCucumber6Jvm'. Plugin specifications should have the format of PLUGIN[:[PATH|[URI [OPTIONS]]]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source