It's not a secret anymore!
The moose likes Ant, Maven and Other Build Tools and the fly likes Return code is: 405 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Return code is: 405 " Watch "Return code is: 405 " New topic

Return code is: 405

das govender

Joined: Mar 12, 2012
Posts: 16

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

My pom looks like

<name>Dev Repository</name>

and my settings.xml looks like:

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 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?

Peter Johnson

Joined: May 14, 2008
Posts: 5852

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.

JBoss In Action
I agree. Here's the link:
subject: Return code is: 405
It's not a secret anymore!