https://blog.csdn.net/lvdaan/article/details/79760976
A first configuration environment variable
Maven added in the path of the bin, for example, the path: D: \ soft \ apache-maven-3.2.5 \ bin;
Open cmd, execute mvn -h View maven environment variable is configured correctly
Second, download the jar package you want to add, find the location of the jar package
Third, in cmd to the location of where the jar
四、输入 mvn install:install-file -DgroupId=com.alipay -DartifactId=trade-sdk -Dversion=1.0.0 -Dpackaging=jar -Dfile=alipay-trade-sdk-1.0.0.jar
-DgroupId: indicates a corresponding jar groupId
-DartifactId: indicates a corresponding jar artifactId
-Dversion: represents the corresponding version jar