Instructor
Ashish Thakur Replied on 11/05/2020
Right click on project in eclipse and click on maven->update project
click on force update snapshot
Then try
Issue was with a comment added with updating the POM file, later it worked however I ran into new issue where I have create new Maven project and update it, whenever I try to update project getting error.
Adding project for more reference.
Instructor
Ashish Thakur Replied on 13/05/2020
<build>
<plugins>
<!-- Compiler plug-in -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${jdk.level}</source>
<target>${jdk.level}</target>
</configuration>
</plugin>
<!-- Below plug-in is used to execute tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<suiteXmlFiles>
<!-- TestNG suite XML files -->
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
Use this build tag after dependencies and update project