命令
比如当前目录下的依赖包名称是 mytoolutils.jar
,则在当前目录下执行
mvn install:install-file -Dfile=mytoolutils.jar -DgroupId=utils -DartifactId=tool -Dversion=1.0.0 -Dpackaging=jar
引用
pom.xml 中引用
<dependency>
<groupId>utils</groupId>
<artifactId>tool</artifactId>
<version>1.0.0</version>
</dependency>