title: Problem running TestNG project using CMD commands
body: <p>I have a problem that I have not been able to solve for several days now (I have been through all of Google already)</p>
  <p>I try to run my entire project (TestNG) tests through the CMD.
  When I run the project with <code>mvn -X package</code> It runs the whole project.
  The problem starts when I make a change to my TestNG.xml file, so that it only runs some of the tests. So the same command (<code>mvn -X package</code>) does not work, and it continues to run all the tests.
  When I try to use a command from the Internet to run the project as TestNG
  <code>java org.testng.TestNG TestNG.xml</code>(With all the variations I found)
  It always shows me the same error message &quot;Error: Could not find or load main class org.testng.TestNG&quot;</p>
  <p>I see that many times they use LIB and BIN folders that I do not have, I only have SRC (I work through intellij) and I have no idea what needs to be put in place or just how to create those folders .</p>
  <p>P.S
  I have noticed that many have encountered this problem, but there is no answer that has been able to help me</p>
  <p><strong>pom.xml</strong>
  `     
  
  4.0.0</p>
  <pre><code>&lt;groupId&gt;SimplyClub.Tests.SubTotalTest&lt;/groupId&gt;
  &lt;artifactId&gt;SimplyTest&lt;/artifactId&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.github.bonigarcia&lt;/groupId&gt;
          &lt;artifactId&gt;webdrivermanager&lt;/artifactId&gt;
          &lt;version&gt;4.4.3&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
          &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
          &lt;version&gt;3.141.59&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.testng/testng --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.testng&lt;/groupId&gt;
          &lt;artifactId&gt;testng&lt;/artifactId&gt;
          &lt;version&gt;6.8&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;simplyclub.test.infrastructur&lt;/groupId&gt;
          &lt;artifactId&gt;SimplyClub&lt;/artifactId&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
          &lt;systemPath&gt;${user.home}/IdeaProjects/SimplyTestInfrastructure/out/artifacts/SimplyTestInfrastructure_jar/SimplyTestInfrastructure.jar&lt;/systemPath&gt;
      &lt;/dependency&gt;
  
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.aventstack&lt;/groupId&gt;
          &lt;artifactId&gt;extentreports&lt;/artifactId&gt;
          &lt;version&gt;5.0.8&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.mail&lt;/groupId&gt;
          &lt;artifactId&gt;javax.mail&lt;/artifactId&gt;
          &lt;version&gt;1.6.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
  
  
  &lt;properties&gt;
  
     &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
     &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
     &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
  &lt;/properties&gt;
  &lt;build&gt;
      &lt;plugins&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;3.0.0-M5&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;suiteXmlFiles&gt;
                      &lt;suiteXmlFile&gt;TestNG.xml&lt;/suiteXmlFile&gt;
                  &lt;/suiteXmlFiles&gt;
              &lt;/configuration&gt;
          &lt;/plugin&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;3.8.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;!--&lt;source&gt;1.8&lt;/source&gt;--&gt;
                  &lt;!--&lt;target&gt;1.8&lt;/target&gt;--&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  <p> `</p>
  <p><strong>TestNG.xml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
   &lt;!DOCTYPE suite SYSTEM &quot;https://testng.org/testng-1.0.dtd&quot; &gt;
  &lt;suite name=&quot;SimplyTest&quot;&gt;
  &lt;listeners&gt;
      &lt;listener class-name = &quot;utilities.Listeners&quot;&gt;&lt;/listener&gt;
  &lt;/listeners&gt;
  
  &lt;test name=&quot;Sub Total&quot;&gt;
      &lt;classes&gt;
          &lt;class name=&quot;Tests.SubTotalTest&quot;&gt;&lt;/class&gt;
      &lt;/classes&gt;
  &lt;/test&gt;
  &lt;test name=&quot;TranEnd&quot;&gt;
      &lt;classes&gt;
          &lt;class name=&quot;Tests.TranEndTest&quot;&gt;&lt;/class&gt;
      &lt;/classes&gt;
  &lt;/test&gt;
  </code></pre>
    
  <p><strong>update:</strong>
  This is what appears to me after I run the command <code>mvn package</code>
  no errors</p>
  <p><strong>update2:</strong>
  So after all the installation of the plugins, there is progress
  But now it presents me with another error that I can not understand
  <code>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-    </code>enter code here<code>plugin:3.1:testCompile</code></p>
  <p><a href="https://i.stack.imgur.com/wrRQb.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>I also updated the POM.xml</p>