1.确认maven的安装路径
2.环境变量的Path里配置的~/maven/bin的安装路径是否正确,这里要配置好后,才能在控制台使用mvn命令
3.使用命令安装,注意需要在jar包所在的目录下使用安装命令
mvn install:install-file -DgroupId=com.aspose.words -DartifactId=aspose.words -Dversion=15.8.0 -Dpackaging=jar -Dfile=aspose-words-15.8.0.jar
4.安装成功
5.在项目的pom.xml文件中使用
参考文档:https://blog.csdn.net/qq_40788398/article/details/124803939