我正在使用Maven 3.我試圖將第三方工件部署到遠程存儲庫,但遇到了一個奇怪的錯誤。我使用部署的命令是Maven:無法將第三方JAR部署到遠程存儲庫
mvn deploy:deploy-file -DgroupId=com.myco.util.ant \
-DartifactId=selenium-ant-task \
-Dversion=1.4 \
-Dpackaging=jar \
-Dfile=/Users/davea/.m2/repository/com/myco/util/ant/selenium-ant-task/1.4/selenium-ant-task-1.4.jar \
-DrepositoryId=sonatype-nexus \
-Durl=http://sonatype.myco.com/nexus/content/repositories/releases
而我得到的錯誤,當我運行此命令是
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file (default-cli) on project maven-selenium-plugin: The parameters 'url' for goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file are missing or invalid -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
這是怎麼回事?我在我的〜/ .m2/settings.xml文件中定義了我的repositoryId,「ssonatype-nexus」,並驗證了這裏的憑據是正確的。
感謝您的任何幫助, - 戴夫
'使用-X開關重新運行Maven以啓用完整的調試日誌記錄。'可以幫助您修復錯誤:) – Jacob