我對使用maven完全陌生。我試圖用截圖中的命令從微軟的MMLSPARK庫中下載一個jar檔案:
我得到了這個錯誤 ... 我不知道問題出在哪里。
[ERROR] Failed to execute goal org.apache.maven. plugins:maven-dependency-plugin:2.8:get (default-cli) on project standalon-pom: Couldn't download artifact: Missing:
[ERROR] ----------。
[ERROR] 1) com.microsoft.ml.spark:mmlspark_2. 11:jar:1.0.0-rc1
[ERROR]
[ERROR] 嘗試從專案網站手動下載檔案。
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=com.microsoft.ml.spark -DartifactId=mmlspark_2. 11 -Dversion=1.0.0-rc1 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] 另外,如果你主持你自己的倉庫,你可以在那里部署檔案。
[ERROR] mvn deploy:deploy-file -DgroupId=com.microsoft.ml.spark -DartifactId=mmlspark_2.11 -Dversion=1. 0.0-rc1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] 路徑 to dependency:
[ERROR] 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0。
[ERROR] 2) com.microsoft.ml.spark:mmlspark_2. 11:jar:1.0.0-rc1
[ERROR]
[ERROR] ----------。
[ERROR] 1必需的工件是缺失。
[ERROR]
[ERROR] for artifact:
[ERROR] org.apache.maven.plugins:maven-downloader-plugin:jar:1.0。
[ERROR]
[ERROR] 來自指定的遠程存盤庫。
uj5u.com熱心網友回復:
除非你有一個奇怪的maven配置,否則截圖中的命令是有效的! 我剛剛執行了它。結果是在當前作業目錄下得到一個jar,叫做mmlspark_2.11-1.0.0-rc1.jar。
另外,請確保你準確地寫上:
mvn dependency:get -DremoteRepositories="https://mmlspark. azureedge.net/maven" -Dartifact="com.microsoft.ml.spark:mmlspark_2.11:1.0.0-rc1" -Ddest=.
(Copy&Paste it!)
如果你繼續遇到問題,在命令中添加-X標志(除錯模式),它將列印出更多關于引擎蓋下發生的資訊...
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/310156.html
標籤:
