1.安装maven
2.配置环境变量:
- M2_HOME : C:\zy_soft\apache-maven-3.6.2
- MAVEN_HOME : C:\zy_soft\apache-maven-3.6.2
- path 添加:%M2_HOME%\bin %MAVEN_HOME%\bin
-
下载对应的jar包,如:
https://mvnrepository.com/artifact/net.sf.ehcache/ehcache-core/2.6.11 -
执行maven命令:
mvn install:install-file -Dfile=“C://ZZZ/ehcache-core-2.6.11.jar” -DgroupId=net.sf.ehcache -DartifactId=ehcache-core -Dversion=2.6.11 -Dpackaging=jar