例如: 需要安装 nmap4j-1.2.3.jar 到本地仓库中,操作步骤如下:
1. 下载JAR文件
2. 安装到本地 Maven 仓库
mvn install:install-file \
-Dfile=path/to/nmap4j-1.2.3.jar \
-DgroupId=com.github.koraktor \
-DartifactId=nmap4j \
-Dversion=1.2.3 \
-Dpackaging=jar
3. 在 pom.xml 中调用:
<dependency>
<groupId>com.github.koraktor</groupId>
<artifactId>nmap4j</artifactId>
<version>1.2.3</version>
</dependency>