jar包发布到本地仓库
mvn install:install-file -Dfile=D:\UserData\Downloads\pe-enterx-guard-2.0.jar -DgroupId=com.mhsb -DartifactId=pe-enterx-guard -Dversion=2.0 -Dpackaging=jar
红字代表本地jar的绝对路径
蓝字是项目组织唯一的标识符,对应pom文件的com.mhsb
绿字是项目的唯一标识符,对应pom文件中的pe-enterx-guard
橙字是项目的版本号,对应的是pom文件中的version
直接复制粘贴,黑字不变,带颜色的字全换成自己的就行了
<dependency>
<groupId>com.mhsb</groupId>
<artifactId>pe-enterx-guard</artifactId>
<version>2.0</version>
</dependency>