I want to know the maven dependency code which I should add into my maven project to include Apache POI 4.0.0 library.
What is the maven dependency code for Apache poi 4.0.0?
Apache POI is Java library from Apache software foundation which is used to read and write Microsoft Office document format files.
Apache POI 4.0.0 comes with many new features, developers using old version of library should update their system to use latest libraries. Apache POI 4.0.0 removed supported for Java 6 and 7, now the minimum version requirement is Java 8.
Here is the code you can add into pom.xml file of your project:
<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.0</version> </dependency>
If you are using Gradle then you can add following code:
compile group: 'org.apache.poi', name: 'poi', version: '4.0.0'
Users using SBT tool in their project can use following code:
libraryDependencies += "org.apache.poi" % "poi" % "4.0.0"