返回首页 您好

手动安装jar文件到本地仓库

发表时间:2025.07.15 15:28 浏览量:48

例如: 需要安装 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>


陕ICP备2024031593号-2