私は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ファイルに "ssonatype-nexus"というリポジトリIDを定義し、そこに正しい資格情報があることを確認しました。任意の助け
おかげで、 - あなたのURLが正しくフォーマットされたようにデーブ
'完全なデバッグログを有効にするために-Xスイッチを使ってMavenを再実行してください.'エラーを修正するのに役立ちます: – Jacob