将下载到本地的JAR包手动添加到Maven仓库
常用Maven仓库网址:
http://mvnrepository.com/
http://search.maven.org/
http://repository.sonatype.org/content/groups/public/
http://people.apache.org/repo/m2-snapshot-repository/
http://people.apache.org/repo/m2-incubating-repository/
l:install-file -Dfile=jar包的位置(参数一) -DgroupId=groupId(参数二) -DartifactId=artifactId(参数三) -Dversion=version(参数四) -Dpackaging=jar
cmd进入 maven的bin
mvn install:install-file -Dfile="D:\Program Files\mvn\ojdbc-10.2.0.4.0.jar" -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar重点:Jar包默认都安装在“C:\Users\Administrator\.m2\repository\”下,其实上面的(参数二,参数三,参数四)就是指定安装具体的安装路径。

浙公网安备 33010602011771号