• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Return code is: 405

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic