Nexus Error 400
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings failed to deploy artifacts could not transfer artifact return code is 400 reasonphrase bad request and policies of this site About Us Learn more about Stack Overflow
Error Deploying Artifact Failed To Transfer File Return Code Is 401
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags error deploying artifact failed to transfer file return code is 500 Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only
Delete Artifact From Nexus
takes a minute: Sign up Deploying release jar error -Return code is: 400, ReasonPhrase: Bad Request up vote 0 down vote favorite [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7: deploy-file (default-cli) on project datatest: Failed to deploy artifacts: Could not transfer artifact com.sabre:datatest:jar:sources:1.3.2-release from/toupload-releases (http://maven.sabre.com/content/repositories/releases): Failed to transfer file: http://maven.sabre.com/content/repositories/releases/com/sabre/ datatest/1.3.2-release/datatest-1.3.2-release-sources.jar. Return code is: 400, ReasonPhrase: Bad Request. -> [Help 1] failed to deploy artifacts: could not find artifact Not sure why am I getting this error ? java linux maven unix share|improve this question asked Apr 18 at 17:17 Diya Prakash 1 400 means you have already an artifact with this version. So you need to create a different version 1.3.3 for example.... –khmarbaise Apr 18 at 20:01 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged java linux maven unix or ask your own question. asked 6 months ago viewed 513 times Related 372Force maven update41Error when deploying an artifact in Nexus0Not able to deploy snapshot artifact to nexus16Nexus accepts upload but says it failed1Error during prepare to release phase using Maven Relelase P
deploy from Maven (or other build tools) make note of the HTTP status code returned. Then check below to see what the code means, and how to diagnose and fix the
Failed To Deploy Artifacts Could Not Transfer Artifact Return Code Is 401 Reasonphrase Unauthorized
issue. Code 400 - Method not Allowed Nexus has received your deployment request
Failed To Deploy Artifacts Could Not Transfer Artifact Reasonphrase Forbidden
but cannot process it because it is invalid. There are two common causes for this. The most common reason could not transfer artifact from/to nexus is that you are trying to re-deploy an artifact into a repository which does not allow redeployment. Check the "deployment policy" in your hosted repository configuration. If it is set to "disable redeploy" http://stackoverflow.com/questions/36700369/deploying-release-jar-error-return-code-is-400-reasonphrase-bad-request it means you cannot redeploy an artifact which is already in the repository. Note that this is the default setting for Nexus release repositories, since redeploying release artifacts is a maven anti-pattern. The second common reason for this code is that you are trying to deploy a release artifact into a snapshot repository, or vice versa. Code 401 - Unauthorized Either no login credentials were https://support.sonatype.com/hc/en-us/articles/213464668-Troubleshooting-Artifact-Deployment-Failures sent with the request, or login credentials which are invalid were sent. Checking the "authorization and authentication" system feed in the Nexus UI can help narrow this down. If credentials were sent there will be an entry in the feed. If no credentials were sent this is likely due to a mis-match between the id in your pom's distributionManagement section and your settings.xml's server section that holds the login credentials. Code 402 - Payment Required This error is returned if you are using Nexus Professional and your license has expired. Code 403 - Forbidden The login credentials sent were valid, but the user does not have permission to upload to the repository. Go to "administration/security" in the Nexus UI, and bring up the user (or the user's role if they are mapped via an external role mapping) and examine the role tree to see what repository privileges they have been assigned. A user will need create and update privileges for a repository to be able to deploy into it. Code 404 - Not Found The repository URL is invalid. Note that this code is returned after the artifact upload has completed, so i
the fantastic documentation, the application itself seemed to have a good community supporting it. So, http://www.ethanjoachimeldridge.info/tech-blog/401-unauthorized-400-bad-request-sonatype-nexus I decided to download and give it a try. It was https://www.reddit.com/r/Nexus/comments/2qcxma/nexus_7_error_400_when_trying_to_update_or/ easy to follow the installation manual and within 5 minutes I had everything installed and was ready to rumble. Here's a couple notes: Don't run Nexus as root. It's a security issue. Make a user for them instead, or run it as your failed to user in a home folder somewhere. Read through the documentation, at least the first few chapters to get the concepts down. Change the default passwords if this isn't a local nexus and can be reached within a network Working with SBT was what I was interested in, and luckily Nexus has a chapter failed to deploy specifically on just that. Which got me mostly up and running. My build file ended up looking like this: organization := "test" name := "thing" version := "0.0.1" scalaVersion := "2.10.3" scalacOptions += "-deprecation" libraryDependencies <+= (scalaVersion)("org.scala-lang" % "scala-compiler" % _) resolvers += "Nexus" at "http://localhost:8081/nexus/content/groups/public" credentials += Credentials(Path.userHome / ".ivy2" / ".credentials") publishTo <<= version { v: String => val nexus = "http://localhost:8081/nexus/" if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots") else Some("releases" at nexus + "content/repositories/releases") } With a .ivy2/.credentials file: realm=Sonatype Nexus Repository Manager host=127.0.0.1 user=admin password=admin123 I spent a lot longer than my initial 5 minutes on trying to get the publish task in sbt to run though. I kept getting: > publish [info] Wrote /Users/eeldridg/Sites/thing/target/scala-2.10/thing_2.10-0.0.1.pom [info] :: delivering :: test#thing_2.10;0.0.1 :: 0.0.1 :: release :: Thu Jul 02 11:56:02 EDT 2015 [info] delivering ivy file to /Users/eeldridg/Sites/thing/target/scala-2.10/ivy-0.0.1.xml [trace] Stack trace suppressed: run last *:publish for the full output. [error] (*:publish) java.io.IOException: Access to URL http://localhost:8081
»NexuscommentsWant to join? Log in or sign up in seconds.|Englishlimit my search to /r/Nexususe the following search parameters to narrow your results:subreddit:subredditfind submissions in "subreddit"author:usernamefind submissions by "username"site:example.comfind submissions from "example.com"url:textsearch for "text" in urlselftext:textsearch for "text" in self post contentsself:yes (or self:no)include (or exclude) self postsnsfw:yes (or nsfw:no)include (or exclude) results marked as NSFWe.g. subreddit:aww site:imgur.com dogsee the search faq for details.advanced search: by author, subreddit...this post was submitted on 25 Dec 20141 point (67% upvoted)shortlink: remember mereset passwordloginSubmit a new linkSubmit a new text postNexussubscribeunsubscribe18,572 readers~19 users here nowWelcome r/Nexus This an umbrella community for all Google Nexus devices. Discover news, rumors, tips, and discussion concerning any of the following Nexus devices: Nexus Communities Smartphones /r/NexusOne /r/NexusS /r/GalaxyNexus /r/Nexus4 /r/Nexus5 /r/Nexus5X /r/Nexus6 /r/Nexus6P Tablets /r/Nexus7 (2012) & (2013) /r/Nexus9 /r/Nexus10 Entertainment Devices /r/NexusQ /r/NexusPlayer Posting issues? Is your post not showing up? Please read this article on how to submit to r/nexus and avoid the spam filter. created by [deleted]a community for 6 yearsmessage the moderatorsMODERATORSPhoenixBlack136Π5, lollipop. Π9, lollipop. ΠQ.LogicProfessorNexus 6 / Nexus 9jaxspiderAutoModeratorFlairYourPostBotabout moderation tea