Maven XML- compile and run, test ng xml file using maven

 

Driver Class:  To create standalone jar to distribute. Please note that This class will not be used for execution via maven. This class file will be used to execute the test ng suite via standalone jar file.

To run test ng xml file programmaticly via standalone jar file;

 

Maven XML: