Skip to main content



      Home
Home » Newcomers » Newcomers » org.eclipse.aether.deployment.DeploymentException for Upload to Nexus(Bad Request (400) when trying to upload file programmatically using aether API)
org.eclipse.aether.deployment.DeploymentException for Upload to Nexus [message #1700745] Mon, 06 July 2015 14:24
Eclipse UserFriend
I am trying to store some files/artificat by defining GAV co-ordinates to Nexus but keep getting
org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact XYZ ????? from/to xxxx???? : Bad Request (400).
Few lines of code:
Artifact artifact = new DefaultArtifact("co.xxx.yyyy.zzz", "xzzz-client", "txt", "1.0.0-SNAPSHOT");
artifact = artifact.setFile(new File("file.txt"));
DeployRequest deployRequest = new DeployRequest();
deployRequest.addArtifact(artifact);
deployRequest.setRepository(repoBuilder);
system.deploy(session, deployRequest);



While I can download file using similiar coading technique.
Previous Topic:problem when i try to run eclipse
Next Topic:Where to discuss or submit suggestions for the tutorials in Help?
Goto Forum:
  


Current Time: Fri May 16 02:16:03 EDT 2025

Powered by FUDForum. Page generated in 0.09142 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top