我本地son-lib-2.1.jar文件在目录E:\\movedevelopment\\software\\developmentpackage\\json
mvn install:install-file
-Dfile=E:\\movedevelopment\\software\\developmentpackage\\json\\json-lib-2.1.jar
-DgroupId=com.guolinmei.lib.jar
-DartifactId=json-lib
-Dversion=2.1
-Dpackaging=jar
-DgeneratePom=true
-DcreateChecksum=true
项目pom.xml文件配置
<dependency>
<groupId>com.guolinmei.lib.jar</groupId>
<artifictId>json-lib</artifictId>
<version>2.1</version>
</dependency>
项目即可依赖本地jar