4zh4r_s4l4ti
4zh4r_s4l4ti

Reputation: 1574

Maven deploy artifact

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!

Upvotes: 0

Views: 686

Answers (1)

artbristol
artbristol

Reputation: 32397

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

Upvotes: 1

Related Questions