title: maven multiple test suits in surefire plugin
body: <p>I am using TestNg and Maven with the surefire plugin to run my tests. I have several different tests that I want to run in the same pom. Currently to do this I have two different XML files defined and i've defined two profiles to run different xml files but this keeps throwing errors!</p>
  
  <p>I don't know how I should solve this issue.
  Any help will be greatly appreciated!</p>
  
  <pre class="lang-xml prettyprint-override"><code> &lt;profile&gt;
      &lt;id&gt;run&lt;/id&gt;
       &lt;activation&gt;
          &lt;property&gt;
              &lt;name&gt;start&lt;/name&gt;
              &lt;value&gt;true&lt;/value&gt;
          &lt;/property&gt;
       &lt;/activation&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;configuration&gt;
                    &lt;skip&gt;true&lt;/skip&gt;
                    &lt;suiteXmlFiles&gt;
                      &lt;suiteXmlFile&gt;${project.build.directory}/resources/testng.xml&lt;/suiteXmlFile&gt;
                    &lt;/suiteXmlFiles&gt;
  
                  &lt;/configuration&gt;
                   &lt;executions&gt;
                    &lt;execution&gt;
                      &lt;id&gt;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;skip&gt;false&lt;/skip&gt;
                      &lt;/configuration&gt;
                    &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
       &lt;/build&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>Imagine profile 2 to be pretty much the same BUT the xml suite file is different</p>
  
  <p>I get a parsing error: It can't find the test class in the suiteXmlFile. However, if I just use one profile have just one xml file, it's acceptable. The one that was failing also works.</p>