1. 程式人生 > >解決maven下載依賴包,pom檔案錯誤問題

解決maven下載依賴包,pom檔案錯誤問題

處理方式,在jar所做位置:

mvn install:install-file -Dfile=imaging-01012005.jar -DgroupId=com.jhlabs -DartifactId=imaging -Dversion=01012005 -Dpackaging=jar

$ mvn install:install-file -Dfile=imaging-01012005.jar -DgroupId=com.jhlabs -DartifactId=imaging -Dversion=01012005 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing C:\Users\57557\Desktop\tmp\image\imaging-01012005.jar to D:\repository\com\jhlabs\imaging\01012005\imaging-01012005.jar
[INFO] Installing C:\Users\57557\AppData\Local\Temp\mvninstall5506601280318105938.pom to D:\repository\com\jhlabs\imaging\01012005\imaging-01012005.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.894 s
[INFO] Finished at: 2018-11-08T17:53:39+08:00
[INFO] ------------------------------------------------------------------------