1.cmd控制台

2.换盘符



maven pom.xml 添加本地jar


3.mvn

 maven pom.xml 添加本地jar

mvn install:install-file -DgroupId=org.json.local -DartifactId=jsonlocal -Dversion=20160606 -Dpackaging=jar -Dfile=jsonlocal20160606.jar -DlocalRepositoryPath=D:\maven_setting\myeclipse2_maven_setting


//----------失败


mvn install:install-file -DgroupId=org.json.local -DartifactId=jsonlocal -Dversion=20160606 -Dpackaging=jar -Dfile=json.jar -DlocalRepositoryPath=D:\maven_setting\myeclipse2_maven_setting


//-----------成功----------包名得对应json.jar 




4.pom.xml配置

maven pom.xml 添加本地jar


相关文章: