Apache poi maven 5.0以上全套写法
时间: 2023-10-10 14:08:45 浏览: 80
poi-3.17-API文档-中文版.zip
5星 · 资源好评率100%
以下是 Apache poi maven 5.0以上全套写法:
```xml
<dependencies>
<!-- Apache poi -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-full</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-scratchpad</artifactId>
<version>5.0.0</version>
</dependency>
<!-- logging -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>2.14.1</version>
</dependency>
<!-- junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
```
其中,`poi`、`poi-ooxml`、`poi-ooxml-full`、`poi-ooxml-schemas`、`poi-scratchpad`是 Apache POI 的核心依赖;`commons-logging`和`log4j`是 Apache 的日志工具依赖;`junit`是单元测试依赖。您可以根据自己的需求来选择是否需要这些依赖。
阅读全文