将本地jar包导入到本地仓库,用于maven依赖

版权声明:UU小七 :转载请标注哦!^v^ https://blog.csdn.net/qq_36474549/article/details/84328231

参考博主:https://blog.csdn.net/qq93538271/article/details/83307631

                 https://www.cnblogs.com/jixue/p/7566732.html
在控制台输入:
mvn install:install-file -Dfile=jar包的位置 -DgroupId=一般是公司名倒序 -DartifactId=唯一型ID -Dversion=版本号 -Dpackaging=jar

在pom.xml中引入使用:

	<dependency>
		<groupId> 一般是公司名倒序 </groupId>
		<artifactId> 唯一型ID </artifactId>
		<version> 版本号 </version>
	</dependency>

猜你喜欢

转载自blog.csdn.net/qq_36474549/article/details/84328231