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才能识别和管理这些包

相关推荐
云烟成雨TD9 小时前
Spring AI Alibaba 1.x 系列【6】ReactAgent 同步执行 & 流式执行
java·人工智能·spring
于慨9 小时前
Lambda 表达式、方法引用(Method Reference)语法
java·前端·servlet
swg3213219 小时前
Spring Boot 3.X Oauth2 认证服务与资源服务
java·spring boot·后端
gelald9 小时前
SpringBoot - 自动配置原理
java·spring boot·后端
殷紫川10 小时前
深入理解 AQS:从架构到实现,解锁 Java 并发编程的核心密钥
java
一轮弯弯的明月10 小时前
贝尔数求集合划分方案总数
java·笔记·蓝桥杯·学习心得
chenjingming66610 小时前
jmeter线程组设置以及串行和并行设置
java·开发语言·jmeter
殷紫川10 小时前
深入拆解 Java volatile:从内存屏障到无锁编程的实战指南
java
eddieHoo10 小时前
查看 Tomcat 的堆内存参数
java·tomcat
那个失眠的夜10 小时前
Mybatis延迟加载策略
xml·java·数据库·maven·mybatis