ojdbc6-1.0.0.jar xmlworker-1.0.0.jar

D:\localRepository\com\domeke\ojdbc6\1.0.0

D:\localRepository\com\domeke\itextpdf\xmlworker\1.0.0

识别不到,那么,我们把这些jar包复制出来,例如放到桌面上

C:\Users\Administrator\Desktop

通过maven命令,上传到maven本地仓库,为什么是这样呢。本地仓库类似另外一个文件系统,用过hadoop吧,差不多这个意思。

mvn install:install-file 通过该命令从本地上传到maven文件系统

mvn install:install-file

复制代码
Microsoft Windows [版本 10.0.19045.6216]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>mvn install:install-file -Dfile="C:\Users\Administrator\Desktop\ojdbc6-1.0.0.jar" -DgroupId=com.domeke -DartifactId=ojdbc6 -Dversion=1.0.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing C:\Users\Administrator\Desktop\ojdbc6-1.0.0.jar to d:\localRepository\com\domeke\ojdbc6\1.0.0\ojdbc6-1.0.0.jar
[INFO] Installing C:\Users\Administrator\AppData\Local\Temp\mvninstall6367224136978313274.pom to d:\localRepository\com\domeke\ojdbc6\1.0.0\ojdbc6-1.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.342 s
[INFO] Finished at: 2026-03-19T08:54:59+08:00
[INFO] Final Memory: 14M/364M
[INFO] ------------------------------------------------------------------------
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>mvn install:install-file -Dfile="C:\Users\Administrator\Desktop\xmlworker-1.0.0.jar" -DgroupId=com.domeke.itextpdf -DartifactId=xmlworker -Dversion=1.0.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing C:\Users\Administrator\Desktop\xmlworker-1.0.0.jar to d:\localRepository\com\domeke\itextpdf\xmlworker\1.0.0\xmlworker-1.0.0.jar
[INFO] Installing C:\Users\Administrator\AppData\Local\Temp\mvninstall7676509424767860752.pom to d:\localRepository\com\domeke\itextpdf\xmlworker\1.0.0\xmlworker-1.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.328 s
[INFO] Finished at: 2026-03-19T08:55:10+08:00
[INFO] Final Memory: 14M/364M
[INFO] ------------------------------------------------------------------------
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>

执行上传命令以后,会生成很多类似"元数据"的文件,根据这些"元数据"文件,本地maven才能识别和管理这些包

相关推荐
RyFit44 分钟前
SpringAI 常见问题及解决方案大全
java·ai
石山代码1 小时前
C++ 内存分区 堆区
java·开发语言·c++
绝知此事1 小时前
【算法突围 01】线性结构与哈希表:后端开发的收纳术
java·数据结构·算法·面试·jdk·散列表
无风听海1 小时前
C# 隐式转换深度解析
java·开发语言·c#
一只大袋鼠2 小时前
Git 进阶(二):分支管理、暂存栈、远程仓库与多人协作
java·开发语言·git
德思特3 小时前
从 Dify 配置页理解 RAG 的重要参数
java·人工智能·llm·dify·rag
YOU OU3 小时前
Spring IoC&DI
java·数据库·spring
один but you3 小时前
从可变参数到 emplace:现代 C++ 性能优化的核心组合
java·开发语言
是码龙不是码农4 小时前
ThreadPoolExecutor 7 个核心参数详解
java·线程池·threadpool
这是程序猿4 小时前
Spring Boot自动配置详解
java·大数据·前端