title: cucumber.runtime.CucumberException: Couldn't load plugin class: com.CustomHtmlFormatter
body: <p>I am new to cucumber parallel execution. I need to do the parallel execution of cucumber TestCases  with cucumber plugin "cucumber-jvm-parallel-plugin". 
  When I run a pom.xml file It throws an error. Please let me know my mistake. </p>
  
  <pre><code>[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.127 s &lt;&lt;&lt; FAILURE! - in TestRunner.Parallel01IT
  [ERROR] initializationError(TestRunner.Parallel01IT)  Time elapsed: 0.009 s  &lt;&lt;&lt; ERROR!
  cucumber.runtime.CucumberException: Couldn't load plugin class: com.project.CustomHtmlFormatter
  Caused by: java.lang.ClassNotFoundException: com.project.CustomHtmlFormatter
  </code></pre>
  
  <p>Below are the project structure. </p>
  
  <p><a href="https://i.stack.imgur.com/zLTha.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zLTha.jpg" alt="enter image description here"></a></p>
  
  <p>POM.xml file </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.project&lt;/groupId&gt;
      &lt;artifactId&gt;Steps&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
      &lt;dependencies&gt;
      .....
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;!-- COPY RESOURCES TO TARGET/ --&gt;
  
              &lt;resource&gt;
                  &lt;directory&gt;../../Cucumber5/src/test/resources/features&lt;/directory&gt;
  
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;!-- RUN EACH CUCUMBER FEATURE FILE AS A FORK --&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.github.temyers&lt;/groupId&gt;
                  &lt;artifactId&gt;cucumber-jvm-parallel-plugin&lt;/artifactId&gt;
                  &lt;version&gt;4.1.0&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;generateRunners&lt;/id&gt;
                          &lt;phase&gt;generate-test-sources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generateRunners&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
  
                              &lt;glue&gt;
                                  &lt;package&gt;com.project.Steps&lt;/package&gt;
                              &lt;/glue&gt;
  
                              &lt;outputDirectory&gt;../../Cucumber5/src/target/generatedTestSources/&lt;/outputDirectory&gt;
                          &lt;featuresDirectory&gt;../../Cucumber5/src/target/classes/&lt;/featuresDirectory&gt;
                          &lt;cucumberOutputDir&gt;../../Cucumber5/src/target&lt;/cucumberOutputDir&gt;
  
  
                              &lt;plugins&gt;
                                  &lt;plugin&gt;
                                      &lt;name&gt;json&lt;/name&gt;
                                  &lt;/plugin&gt;
                                  &lt;plugin&gt;
                                      &lt;name&gt;com.project.CustomHtmlFormatter&lt;/name&gt;
                                      &lt;extension&gt;html&lt;/extension&gt;
                                  &lt;/plugin&gt;
                              &lt;/plugins&gt;
                              &lt;!-- CucumberOptions.strict property --&gt;
                              &lt;strict&gt;true&lt;/strict&gt;
  
                              &lt;monochrome&gt;true&lt;/monochrome&gt;
  
                              &lt;useTestNG&gt;false&lt;/useTestNG&gt;
                              &lt;namingScheme&gt;pattern&lt;/namingScheme&gt;
                              &lt;namingPattern&gt;Parallel{c}IT&lt;/namingPattern&gt;
                              &lt;parallelScheme&gt;FEATURE&lt;/parallelScheme&gt;
  
                              &lt;!-- Specify a custom package name for generated sources. Default 
                                  is no package. --&gt;
                              &lt;packageName&gt;TestRunner&lt;/packageName&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  
  
  
  
  
                 &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.20&lt;/version&gt;
  &lt;!-- RUN ALL CLASSES CREATED BY cucumber-jvm-parallel-plugin IN PARALLEL --&gt;
          &lt;executions&gt;
           &lt;execution&gt;
               &lt;id&gt;acceptance-test&lt;/id&gt;
               &lt;phase&gt;integration-test&lt;/phase&gt;
               &lt;goals&gt;
                   &lt;goal&gt;test&lt;/goal&gt;
               &lt;/goals&gt;
               &lt;configuration&gt;
                   &lt;forkCount&gt;5&lt;/forkCount&gt;
                   &lt;reuseForks&gt;true&lt;/reuseForks&gt;
                   &lt;includes&gt;
                      &lt;include&gt;**/Parallel*IT.class&lt;/include&gt;
                   &lt;/includes&gt;
               &lt;/configuration&gt;
          &lt;/execution&gt;
          &lt;/executions&gt;
           &lt;/plugin&gt;
  
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>After running the pom.xml file below Parallel01IT.java file<br>
  generated. </p>
  
  <pre><code>package TestRunner;
  
  import org.junit.runner.RunWith;
  
  import cucumber.api.CucumberOptions;
  import cucumber.api.junit.Cucumber;
  
  @RunWith(Cucumber.class)
  @CucumberOptions(
          strict = true,
          features = {"E:/workspaceTAAP/Cucumber5/src/target/classes/tester.feature"},
          plugin = {"json:E:/workspaceTAAP/Cucumber5/src/target/1.json", "com.project.CustomHtmlFormatter:E:/workspaceTAAP/Cucumber5/src/target/1.html"},
          monochrome = true,
          tags = {},
          glue = {"com.project.Steps"})
  public class Parallel01IT {
  }
  </code></pre>