title: Running different test suites using testng and maven
body: <p>I am using TestNg and Maven with the surefire plugin to run my tests.  I have several different components that I want to be able to run at different times using the same pom.  Currently to do this I have several different XML files defining a test suite and I have the pom set up so i can do mvn test -Dtestfile=/path and use that suite instead.  </p>
  
  <p>I was wondering if there is a way to combine the XML files into one file and chose base off testnames or some other system?  </p>
  
  <p>EDIT:  I have all my tests defined with Smoke, Sanity, Regression already and I would like to be able to run all Regressions for a given component.  If I run through the TestNG CLI, I am able to give -testnames comp1,comp2,comp3,etc. where each component is defined in one xml suite which contains multiple tests ().  I was wondering if there was any way to do this in maven short of using the exec:java plugin.</p>