1,進入本地jar所在磁盤路徑;
2,在cmd命令窗口中執行:
mvn install:install-file -DgroupId=com.zhuozhengsoft -DartifactId=pageoffice4 -Dversion=4.0.0.1 -Dpackaging=jar -Dfile=pageoffice4.jar
3,pom.xml文件添加依賴
<dependency> <groupId>com.zhuozhengsoft</groupId> <artifactId>pageoffice4</artifactId> <version>4.0.0.1</version> <type>jar</type> </dependency>