• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Return code is: 405

 
das govender
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to get my jar to be distributed to my dev environment by running maven locally.

My pom looks like

<distributionManagement>
<repository>
<id>fndsdevmaven</id>
<name>Dev Repository</name>
<url>http://localhost:8000/fndsdevmaven/</url>
</repository>
</distributionManagement>


and my settings.xml looks like:
<servers>
<server>
<id>fndsdevmaven</id>
<username>daslan</username>
</server>
</servers>



I get this error when using mvn deploy

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project mavenproject1: Failed to deploy artifacts: Could not transfer artifact za.co.das.maven:mavenproject1:jar:1.1-20120313.083646-1 from/to fndsdevmaven (http://localhost:8000/fndsdevmaven/): Failed to transfer file: http://localhost:8000/fndsdevmaven/za/co/das/maven/mavenproject1/1.1-SNAPSHOT/mavenproject1-1.1-20120313.083646-1.jar. Return code is: 405 -> [Help 1]

Any help will be appreciated?

Tks,
D
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which repository manager are you running? Nexus? Artifactory? The repository URL looks suspicious, it doesn't look like a typical Nexus repository location.

Based on the artifact version, I suspect that you are attempting to deploy a SNAPSHOT. I suspect that the repository you are deploying it to is not a snapshot repository (you cannot deploy snapshot to a "release" repository), hence the 405 error.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic