I have created a Cucumber-Gherkin framework based Maven testing project in Intellij IDEA and the setup looks like this:

[![Project Structures in Intellij IDEA](https://i.stack.imgur.com/bsgSt.png)](https://i.stack.imgur.com/bsgSt.png)

CuckesRunner class looks like this:

```java
@RunWith(Cucumber.class)
@CucumberOptions(
        features = {"src/test/resources/features/001-login.feature"},
        glue = {"syncpilot/Dokumentportal/step_definitions"},
        monochrome = true,
        plugin = {"html:target/HTMLReports",
                "rerun:target/rerun.txt"},
        dryRun = false
        //tags = "@login"
        //tags = ""
)

public class CukesRunner {
    public static void main(String[] args) throws Throwable {
        //String[] arguments = {"foo", "bar"};
        io.cucumber.core.cli.Main.main();
    }
}

```

When running CukesRunner class, testcases are getting pass with no error, now I need to generate a runnable jar file so that I can execute it from anywhere, so that's why I created main method inside the CukesRunner class and that same main class(CukesRunner) I have added in pom.xml using 'maven assembly plugin' and it looks like this:

```xml
<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>3.1.0</version>
    <configuration>
        <archive>
            <manifest>
                <addClasspath>true</addClasspath>
                <mainClass>io.cucumber.core.cli.Main</mainClass>
            </manifest>
        </archive>
        <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
        </descriptorRefs>
    </configuration>
    <executions>
        <execution>
            <id>make-assembly</id>
            <phase>package</phase>
            <goals>
                <goal>single</goal>
            </goals>
        </execution>
    </executions>
</plugin>

```

I am creating the jar file using following steps:
File>> Project Structure>> Artifacts>> jar(mit modules with dependencies)>> selecting main class which is CukesRunner and clicking on checkbox to include tests also and at the End building it.

Now when i am executing the generated jar file it is showing:

```
WARNING: No features found at classpath:/
0 Scenarios
0 Steps
0m0.004s

```

What am i doing wrong here?