将jar包添加到本地Maven仓库

1.在环境变量中配置 path 中添加 maven的bin 的路径 例如:D:\xxx\apache-maven-3.2.5\bin;

2下载要添加的jar包 ,在cmd中定位到jar包的位置

3输入

 mvn install:install-file -DgroupId=aspose-cells -DartifactId=aspose-cells -Dversion=8.5.2 -Dpackaging=jar -Dfile=aspose-cells-8.5.2.jar
-DgroupId:表示jar对应的groupId 

-DartifactId: 表示jar对应的artifactId

-Dversion: 表示jar对应的 version

pom.xml

<dependency>
    <groupId>aspose-cells</groupId>
    <artifactId>aspose-cells</artifactId>
    <version>8.5.2</version>
</dependency>

 

posted @ 2021-03-11 18:55  ___mouM  阅读(377)  评论(0编辑  收藏  举报