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

