maven pom.xml添加本地jar

xiaoxiao2021-02-27  194

1.cmd控制台

2.换盘符

3.mvn

 

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配置

转载请注明原文地址: https://www.6miu.com/read-9589.html

最新回复(0)