apache poi 5.2.2 maven 完整依赖
时间: 2023-12-03 11:45:53 浏览: 551
以下是Apache POI 5.2.2的完整Maven依赖:
```xml
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.2</version>
</dependency>
```
请注意,这只包含了Apache POI的核心API和使用Office Open XML格式的扩展。如果您需要使用其他格式(例如HSSF或XSSF),您需要添加相应的附加依赖项。
相关问题
apache poi 5.2.2 maven 依赖
可以在 Maven 项目中添加以下依赖来使用 Apache POI 5.2.2:
```xml
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.2</version>
</dependency>
```
其中,`poi` 是 Apache POI 的核心库,`poi-ooxml` 是用于处理 Office OpenXML 格式(例如 `.xlsx`、`.docx` 等)的库。根据需要选择添加即可。
Apache POI 5.2.2的全部Maven依赖:
以下是Apache POI 5.2.2的全部Maven依赖:
```xml
<dependencies>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-lite</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-full</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-scratchpad</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-excelant</artifactId>
<version>5.2.2</version>
</dependency>
<!-- Optional dependencies -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-excelant-ooxml</artifactId>
<version>5.2.2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-encryption</artifactId>
<version>5.2.2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-security</artifactId>
<version>5.2.2</version>
<optional>true</optional>
</dependency>
</dependencies>
```
其中,`poi`、`poi-ooxml`、`poi-ooxml-lite`、`poi-ooxml-full`、`poi-scratchpad`和`poi-excelant`是必要的依赖,而`poi-excelant-ooxml`、`poi-encryption`和`poi-ooxml-security`是可选的依赖。
阅读全文