Maven 部署工件 [英] Maven deploy artifact

查看:51
本文介绍了Maven 部署工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 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="My POM" -DrepositoryLayout=default -DuniqueVersion=false

我的 settings.xml 包含一个关于 repositoryId as- 的条目

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:无法传输文件:http://myRepos.com/repo/com/yagnaiq/temp/1.0/temp-1.0-test.jar.返回码为:500

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆