1. 程式人生 > >手動增加lib到m2目錄,maven不能自動download情況下

手動增加lib到m2目錄,maven不能自動download情況下

hanruikaideMacBook-Pro:Downloads hanruikai$ mvn install:install-file -DgroupId=net.sf.proguard  -DartifactId=proguard-base  -Dversion=5.3.3 -Dpackaging=jar -Dfile=proguard-base-5.3.3.jar -DgeneratePom=true

[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 /Users/hanruikai/Downloads/proguard-base-5.3.3.jar to /Users/hanruikai/.m2/repository/net/sf/proguard/proguard-base/5.3.3/proguard-base-5.3.3.jar

[INFO] Installing /var/folders/2v/6tllxw0d7s35ptzngz49hgcr0000gn/T/mvninstall7580986809370231881.pom to /Users/hanruikai/.m2/repository/net/sf/proguard/proguard-base/5.3.3/proguard-base-5.3.3.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.364 s

[INFO] Finished at: 2018-11-09T11:04:48+08:00

[INFO] Final Memory: 10M/309M

[INFO] ------------------------------------------------------------------------

hanruikaideMacBook-Pro:Downloads hanruikai$