Maven:the way to add third-party jar-package to Local Maven Repository for using conveniently

来源:互联网 发布:虚拟现实java培训 编辑:程序博客网 时间:2024/06/05 00:25

mvn install:install-file -Dfile=C:\MavenRepository\org\springframework\data\spring-data-redis\1.0.0 -DgroupId=org.springframework.data -DartifactId=spring-data-redis -Dversion=1.0.0 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true


introduction:1 Dfile :refers to your jar-package position

       2 DgroupId  : refers to dependency groupId

       3 DartifactId : refers to dependency artifactId

       4 Dversion: refers to dependency version

原创粉丝点击