将本地jar包安装到本地mvn仓库中,mvn命令
命令格式: mvn install:install-file -Dfile={jar路径} -DgroupId={groupId 值} -DartifactId={artifactId值} -Dversion={版本号} -Dpackaging=jar -DlocalRepositoryPath={m2home path值,本地maven repo路径}
例如:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc8</artifactId>
<version>21.1.0.0</version>
</dependency>
命令:
mvn install:install-file -Dfile=D:\m2\repository\com\oracle\ojdbc8-21.1.0.0.jar -DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=21.1.0.0 -Dpackaging=jar -DlocalRepositoryPath=D:\m2\repository