Compilation error while adding POI jars using Maven | Selenium Forum
20% Off Lockdown Learning Discount Avail now

Compilation error while adding POI jars using Maven

P
pateljp19 Post on 11/05/2020

 

S

Instructor

Support Team Reply 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 Reply 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.

 

P
pateljp19 Reply on 12/05/2020

Adding project for more reference.

S

Instructor

Support Team Reply 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