title: Juint Test suite fails to run from Pom file
body: <p>I have a project in which I have used Juint5 for creating tests and test suites. I want to run the test suite via the pom file. Below is the pom file and test suit which I have created. when I run the <code>mvn clean</code>
  it does not execute any tests but when I manually run the test suite <code>run as JUnit test</code> all the test cases are executed</p>
  <p>can someone please help me here?</p>
  <p>Suite file</p>
  <pre><code>@RunWith(JUnitPlatform.class)
  @SelectClasses( {TestA.class,TestB.class} )
  @IncludeTags(&quot;unitTest&quot;)
  public class Testsuite
  {   
  }
  
  </code></pre>
  <p>classes</p>
  <pre><code>public class TestA
  {
  @Test
      @Tag(&quot;unitTest&quot;)
    static void myMethod1() 
  {
      System.out.println(&quot;Hello World!&quot;);
    }
  
    }
  
  
  public class TestB
  {
  @Test
  @Tag(&quot;unitTest&quot;)
    static void myMethod2()
  {
      System.out.println(&quot;Hello World!&quot;);
    }
  
    }
  </code></pre>
  <p>pom file entry</p>
  <pre><code>            &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;${maven.surefire.version}&lt;/version&gt;
                  &lt;configuration&gt;
                  &lt;includes&gt;
                  &lt;include&gt;**/Testsuite*&lt;/include&gt;
                  &lt;/includes&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt; 
  </code></pre>
  <p>full pom file</p>
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      
      &lt;groupId&gt;com.junit.karte.emo&lt;/groupId&gt;
      &lt;artifactId&gt;cg-automation&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
     &lt;!-- &lt;packaging&gt;jar&lt;/packaging&gt; --&gt; 
   
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;cucumber.reporting.version&gt;5.3.1&lt;/cucumber.reporting.version&gt;
          &lt;karate.version&gt;0.9.6&lt;/karate.version&gt;
          &lt;junit.runner.version&gt;1.0.18&lt;/junit.runner.version&gt;
          &lt;commons.lang3.version&gt;3.11&lt;/commons.lang3.version&gt;
          &lt;jsch.version&gt;0.1.55&lt;/jsch.version&gt;
          &lt;junit.jupiter.engine.version&gt;5.6.2&lt;/junit.jupiter.engine.version&gt;
          &lt;junit-jupiter-api.version&gt;5.8.0-M1&lt;/junit-jupiter-api.version&gt;
          &lt;junit.platform.runner&gt;1.6.2&lt;/junit.platform.runner&gt;
          &lt;cg_password&gt;n&lt;/cg_password&gt;
          &lt;host_ip&gt;10.204.100.136&lt;/host_ip&gt;
          &lt;host_usrname&gt;root&lt;/host_usrname&gt; 
          &lt;host_password&gt;n&lt;/host_password&gt; 
          &lt;build_name&gt;change_guardian-6.2&lt;/build_name&gt;
          &lt;custom_path&gt;/usr&lt;/custom_path&gt;
          &lt;cg_version&gt;8.5.0.0.13&lt;/cg_version&gt;
          &lt;web_port&gt;8443&lt;/web_port&gt;
          &lt;win_host&gt;vlab007206&lt;/win_host&gt;
          &lt;win_ip&gt;10.204.108.65&lt;/win_ip&gt;
          &lt;win_user&gt;administrator@cgdom100.lab&lt;/win_user&gt;
          &lt;win_password&gt;Control4321&lt;/win_password&gt;
          &lt;asset_type&gt;win&lt;/asset_type&gt;
          &lt;unix_host&gt;vlab007201&lt;/unix_host&gt;
          &lt;unix_ip&gt;10.204.100.136&lt;/unix_ip&gt;
          &lt;unix_user&gt;root&lt;/unix_user&gt;
          &lt;unix_password&gt;n&lt;/unix_password&gt;
          &lt;base_build&gt;change_guardian-6.1&lt;/base_build&gt;
          &lt;basecg_version&gt;8.3&lt;/basecg_version&gt;
          &lt;maven.compiler.version&gt;3.8.1&lt;/maven.compiler.version&gt;
          &lt;maven.surefire.version&gt;2.22.2&lt;/maven.surefire.version&gt;
          &lt;maven.site.version&gt;3.7.1&lt;/maven.site.version&gt;  
          &lt;maven.surefire.report.version&gt;3.0.0.M5&lt;/maven.surefire.report.version&gt;
          &lt;maven.project.info.reports.version&gt;3.0.0&lt;/maven.project.info.reports.version&gt;      
          &lt;runSuite&gt;StanderdPathInstall.java&lt;/runSuite&gt;
          &lt;groups&gt;StanderdPathInstall&lt;/groups&gt;
      &lt;/properties&gt;    
      &lt;repositories&gt;
          &lt;repository&gt;
            &lt;id&gt;sm.releases&lt;/id&gt;
            &lt;name&gt;NetIQ Security Management site - RELEASES&lt;/name&gt;
            &lt;url&gt;https://btpartifactory.swinfra.net:443/artifactory/security-sentinel-mvn-releases/&lt;/url&gt;
            &lt;releases&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;${repository-updatePolicy}&lt;/updatePolicy&gt;
              &lt;checksumPolicy&gt;warn&lt;/checksumPolicy&gt;
            &lt;/releases&gt;
            &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;${repository-updatePolicy}&lt;/updatePolicy&gt;
              &lt;checksumPolicy&gt;warn&lt;/checksumPolicy&gt;
            &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
            &lt;id&gt;sm.snapshots&lt;/id&gt;
            &lt;name&gt;NetIQ Security Management site - SNAPSHOTS&lt;/name&gt;
            &lt;url&gt;https://btpartifactory.swinfra.net:443/artifactory/security-sentinel-mvn-snapshots/&lt;/url&gt;
            &lt;releases&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
            &lt;/releases&gt;
            &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;${repository-updatePolicy}&lt;/updatePolicy&gt;
            &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;name&gt;Central Repository&lt;/name&gt;
              &lt;url&gt;https://repo.maven.apache.org/maven2/&lt;/url&gt;
              &lt;layout&gt;default&lt;/layout&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;apache.central&lt;/id&gt;
              &lt;name&gt;Apache Maven Central Repository&lt;/name&gt;
              &lt;url&gt;https://repository.apache.org/content/repositories/releases/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
              &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
              &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt;
              &lt;layout&gt;default&lt;/layout&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
            &lt;id&gt;maven2-maven-org&lt;/id&gt;
            &lt;url&gt;https://repo1.maven.org/maven2/&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;dependencies&gt;  
      &lt;!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
      &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
      &lt;version&gt;5.8.0-M1&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
                      
          &lt;dependency&gt;
              &lt;groupId&gt;com.intuit.karate&lt;/groupId&gt;
              &lt;artifactId&gt;karate-apache&lt;/artifactId&gt;
              &lt;version&gt;${karate.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;            
          &lt;dependency&gt;
              &lt;groupId&gt;com.intuit.karate&lt;/groupId&gt;
              &lt;artifactId&gt;karate-junit5&lt;/artifactId&gt;
              &lt;version&gt;${karate.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;   
          &lt;dependency&gt;
              &lt;groupId&gt;org.pantsbuild&lt;/groupId&gt;
              &lt;artifactId&gt;junit-runner&lt;/artifactId&gt;
              &lt;version&gt;${junit.runner.version}&lt;/version&gt;
          &lt;/dependency&gt;        
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
              &lt;version&gt;${commons.lang3.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.jcraft&lt;/groupId&gt;
              &lt;artifactId&gt;jsch&lt;/artifactId&gt;
              &lt;version&gt;${jsch.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
              &lt;version&gt;${junit.jupiter.engine.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
              &lt;version&gt;${junit-jupiter-api.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
              &lt;artifactId&gt;junit-platform-runner&lt;/artifactId&gt;
              &lt;version&gt;${junit.platform.runner}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;testResources&gt;
              &lt;testResource&gt;
                  &lt;directory&gt;src/test/java&lt;/directory&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/*.java&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/testResource&gt;
          &lt;/testResources&gt;
          
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maven.compiler.version}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                      &lt;source&gt;${java.version}&lt;/source&gt;
                      &lt;target&gt;${java.version}&lt;/target&gt;
                      &lt;compilerArgument&gt;-Werror&lt;/compilerArgument&gt;
                  &lt;/configuration&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;${maven.surefire.version}&lt;/version&gt;
                 &lt;configuration&gt;
            &lt;includes&gt;
              &lt;include&gt;StanderdPathInstall.java&lt;/include&gt;
            &lt;/includes&gt;
          &lt;/configuration&gt;
              &lt;/plugin&gt; 
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maven.site.version}&lt;/version&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;    
          &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/test/resources&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;    
      &lt;/build&gt;       
      &lt;reporting&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-report-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maven.surefire.report.version}&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maven.project.info.reports.version}&lt;/version&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/reporting&gt;
  &lt;/project&gt;
  </code></pre>