1.在环境变量中配置 path 中添加 maven的bin 的路径 例如:D:xxxapache-maven-3.2.5in;
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>