Maven安装本地jar包到本地仓库

1.配置pom.xml(不能够自动下载jar包)

 <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>6</version>
 </dependency>

2.手动安装本地仓库命令行执行如下:

mvn install:install-file -Dfile=jar包的位置 -DgroupId=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jar

posted @ 2020-09-22 09:18  孤独一梦  阅读(134)  评论(0编辑  收藏  举报