C:\Users\Administrator>mvn install:install-file -Dfile=d:/clj-time-0.4.1.jar -DgroupId=clj-time -DartifactId=clj-time -Dversion=0.4.1 -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:\clj-time-0.4.1.jar to D:\program\apache-maven-3.1.1\repo\re
pository\clj-time\clj-time\0.4.1\clj-time-0.4.1.jar
[INFO] Installing C:\Users\ADMINI~1\AppData\Local\Temp\mvninstall897139633649434
8520.pom to D:\program\apache-maven-3.1.1\repo\repository\clj-time\clj-time\0.4.
1\clj-time-0.4.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.551s
[INFO] Finished at: Sun Feb 08 23:06:19 CST 2015
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
C:\Users\Administrator>mvn install:install-file -Dfile=d:/compojure-1.1.3.jar -D
groupId=compojure -DartifactId=compojure -Dversion=1.1.3 -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:\compojure-1.1.3.jar to D:\program\apache-maven-3.1.1\repo\r
epository\compojure\compojure\1.1.3\compojure-1.1.3.jar
[INFO] Installing C:\Users\ADMINI~1\AppData\Local\Temp\mvninstall590121248570533
8380.pom to D:\program\apache-maven-3.1.1\repo\repository\compojure\compojure\1.
1.3\compojure-1.1.3.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.514s
[INFO] Finished at: Sun Feb 08 23:12:43 CST 2015
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
pom:
<groupId>clj-time</groupId>
<artifactId>clj-time</artifactId>
<version>0.4.1</version>
maven安装jar包到本地maven库
原文:http://blog.csdn.net/u010670689/article/details/43649187