What is the purpose of Execution tag in Maven? I run testng.xml using POM file, With and Without using execution tag ,i get the same output using mvn clean.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<executions>
<execution>
<id>testngtest</id>
<phase>test</phase>
</execution>
</executions>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${testngxml.location}/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
Then why we are using Execution tag?