Maven 安装自己的依赖

命令

比如当前目录下的依赖包名称是 mytoolutils.jar,则在当前目录下执行

mvn install:install-file -Dfile=mytoolutils.jar -DgroupId=utils -DartifactId=tool -Dversion=1.0.0 -Dpackaging=jar

引用

pom.xml 中引用

<dependency>
	<groupId>utilsgroupId>
	<artifactId>toolartifactId>
	<version>1.0.0version>
dependency>

你可能感兴趣的:(maven,java)