This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Return code is: 405 " Watch "Return code is: 405 " New topic
Author

Return code is: 405

das govender
Greenhorn

Joined: Mar 12, 2012
Posts: 16
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

Joined: May 14, 2008
Posts: 5823
    
    7

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: http://aspose.com/file-tools
 
subject: Return code is: 405