Maven deploy artifact

一笑奈何 提交于 2021-02-11 15:19:23

问题


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="My POM" -DrepositoryLayout=default -DuniqueVersion=false

My settings.xml contains an entry for repositoryId as-

<servers>
    <server>
      <id>repo-mine</id>
      <username>admin</username>
      <password>admin</password>
    </server>  </servers>

I am getting following error -

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

Need help on this!

THanks!


回答1:


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).



来源:https://stackoverflow.com/questions/8079034/maven-deploy-artifact

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!