Compilation error while adding POI jars using Maven | Selenium Forum
P
pateljp19 Posted on 11/05/2020

 


A
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


P
pateljp19 Replied on 12/05/2020

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.

 

Responsive image


P
pateljp19 Replied on 12/05/2020

Adding project for more reference.


A
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