Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:24
mizanur kazi is currently offline mizanur kaziFriend
Messages: 1
Registered: July 2015
Junior Member
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: Thu Jul 18 16:17:33 GMT 2019

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

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

Back to the top