# Maven安装本地依赖到仓库

**URL:** <https://www.shiqidu.com/t/topic/812>\
**Category:** 开发调优\
**Tags:** Java\
**Created:** [2024 年4 月 9 日 09:11 UTC](https://www.shiqidu.com/t/topic/812 "2024-04-09T09:11:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![Eureka](https://www.shiqidu.com/user_avatar/www.shiqidu.com/eureka/32/5_2.png) [@Eureka](https://www.shiqidu.com/u/Eureka)\
发布日期： [2024 年4 月 9 日 09:11 UTC](https://www.shiqidu.com/t/topic/812/1 "2024-04-09T09:11:11Z")

</div>

项目里用到了com.alibaba:easyexcel:2.1.6，但是maven直接安装却失败了，所以只能先去maven仓库下载对应的版本jar包，然后再安装到本地仓库。

### 下载

[https://mvnrepository.com/artifact/com.alibaba/easyexcel/2.1.6](https://mvnrepository.com/artifact/com.alibaba/easyexcel/2.1.6)

### 安装

```bash
mvn install:install-file -DgroupId=com.alibaba -DartifactId=easyexcel -Dversion=2.1.6 -Dpackaging=jar -Dfile=easyexcel-2.1.6.jar

```

安装成功之后刷新一下应该就不会再报错了。
