Maven项目导入仓库没有的包

mvn install:install-file -Dfile=ojdbc14-11.2.0.1.0.jar -DgroupId=oracle -DartifactId=ojdbc14 -Dversion=11.2.0.1.0 -Dpackaging=jar

命令解析:

mvn install:install-file -Dfile=fileName(xxx.jar) -DgroupId=groupName -DartifactId=artifactIdName -Dversion=versionName -Dpacking=packingTypeName

其实,上述命令就是根据maven中pom.xml文件引入外部仓库的格式差不多,对照着写就可以了

原文地址:https://www.cnblogs.com/yuchuan/p/maven_local_jar.html