向本地maven中加载依赖

1、现在maven官网仓库找到相应依赖

Maven Repository: Search/Browse/Explore (mvnrepository.com)

2、下载相应jar包

3、使用maven命令在jar所在文件加内cmd运行

注意修改参数

-DgroupId:表示jar对应的groupId

<groupId>io.confluent</groupId>

-DartifactId: 表示jar对应的artifactId

<artifactId>kafka-schema-registry-client</artifactId>

-Dversion: 表示jar对应的 version

<version>4.1.1</version>

命令

mvn install:install-file -DgroupId=fr.opensagres.xdocreport -DartifactId=fr.opensagres.xdocreport.document -Dversion=2.0.1 -Dpackaging=jar -Dfile=fr.opensagres.xdocreport.document-2.0.1.jar

结果

注意看文件生成位置

最后把生成的文件放到自己的本地maven仓库内即可

相关推荐
Flittly10 小时前
【AgentScope Java新手村系列】(16)从RAG到多路检索
java·spring boot·spring
小兔崽子去哪了10 小时前
Java 生成二维码解决方案
java·后端
人活一口气15 小时前
从JVM调优到MCP协议:Java全栈技术体系深度总结与企业级架构实践
java·spring boot
NE_STOP17 小时前
Vibe Coding -- 完整项目案例实操
java
荣码17 小时前
GraphRAG:普通RAG只能回答"点"的问题,我踩了4个坑才搞懂
java·python
SimonKing17 小时前
Google第三方授权登录
java·后端·程序员
明月光81817 小时前
从一行 @Builder 说起:重新拾起 Java 的 Lombok、注解与 Builder 模式
java
考虑考虑1 天前
Mybatis实现批量插入
java·后端·mybatis
咖啡八杯1 天前
GoF设计模式——中介者模式
java·后端·spring·设计模式
青石路1 天前
记一次多JDK版本问题的排查,一坑套一坑,差点没爬上来
java