Maven部署工件 [英] Maven deploy artifact
问题描述
我正在使用mvn deploy:deploy-file将工件上传到远程存储库.我有-Apache2.2和Maven-3.0.3
I am using mvn deploy:deploy-file to upload a artifact to the remote repository. I am having - Apache2.2 and Maven-3.0.3
以下是我正在使用的命令-
Following is the command I am using -
mvn -X deploy:deploy-file -Durl = http://myRepos.com/repo/-DrepositoryId = repo-mine -Dfile = temp.jar -DgroupId = com.yagnaiq -DartifactId = temp-Dversion = 1.0 -Dpackaging = jar -Dclassifier = test -DgeneratePom = true -DgeneratePom.description =我的POM" -DrepositoryLayout =默认-DuniqueVersion = false
我的settings.xml包含一个repositoryId的条目,为-
My settings.xml contains an entry for repositoryId as-
<servers>
<server>
<id>repo-mine</id>
<username>admin</username>
<password>admin</password>
</server> </servers>
我遇到以下错误-
原因:org.apache.maven.wagon.TransferFailedException:无法传输文件:
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://myRepos.com/repo/com/yagnaiq/temp/1.0/temp-1.0-test.jar. Return code is: 500
需要帮助!
谢谢!
推荐答案
错误500表示远程服务器上出现了问题.您应该检查myrepos.com服务器上的日志.(也许是磁盘空间不足之类的东西.)
Error 500 means something went wrong on the remote server. You should check the logs on the myrepos.com server. (Maybe it's out of disk space or something).
这篇关于Maven部署工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!