This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Return code is: 405

 
Greenhorn
Posts: 17
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • 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.
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic