Maven 项目引用本地Jar

时间:2024-03-21 17:05:13

mvn install:install-file -Dfile=svs-api-jdk1.6.jar -DgroupId=cfca.svs -DartifactId=svs-api-jdk -Dversion=1.6 -Dpackaging=jar

D:\cfcaService\lib>mvn install:install-file -Dfile=svs-api-jdk1.6.jar -DgroupId=
cfca.svs -DartifactId=svs-api-jdk -Dversion=1.6 -Dpackaging=jar
[INFO] Scanning for projects...
[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 D:\cfcaService\lib\svs-api-jdk1.6.jar to D:\repository\cfca\sv
s\svs-api-jdk\1.6\svs-api-jdk-1.6.jar
[INFO] Installing C:\Users\hdb\AppData\Local\Temp\mvninstall5263441598659265485.
pom to D:\repository\cfca\svs\svs-api-jdk\1.6\svs-api-jdk-1.6.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.997 s
[INFO] Finished at: 2018-12-11T11:15:54+08:00
[INFO] Final Memory: 8M/153M
[INFO] ------------------------------------------------------------------------Maven 项目引用本地Jar

 D:\cfcaService\lib>mvn install:install-file -Dfile=sadk-3.5.0.2.jar -DgroupId=cf
ca.sadk -DartifactId=sadk -Dversion=3.5.0.2 -Dpackaging=jar
[INFO] Scanning for projects...
[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 D:\cfcaService\lib\sadk-3.5.0.2.jar to D:\repository\cfca\sadk
\sadk\3.5.0.2\sadk-3.5.0.2.jar
[INFO] Installing C:\Users\hdb\AppData\Local\Temp\mvninstall8363687525736204704.
pom to D:\repository\cfca\sadk\sadk\3.5.0.2\sadk-3.5.0.2.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.002 s
[INFO] Finished at: 2018-12-11T11:21:18+08:00
[INFO] Final Memory: 8M/153M
[INFO] ------------------------------------------------------------------------