mvn deploy doesnt work in nexus 3.2.1-01

4,232 views
Skip to first unread message

Eddú Meléndez Gonzales

unread,
Mar 1, 2017, 2:36:58 PM3/1/17
to Nexus Users
Hi,

I am performing deploy because want to upload a jar to my nexus repository 3.2.1-01 but I can't. I got code 405. I remember to do that in nexus 2 and everything works fine. Also, can not find a way to upload my jar manually :(

Below, you can find the command performed and the error message.

mvn org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file -DgroupId=com.apps -DartifactId=utils -Dversion=1.0 -Dpackaging=jar -Dfile=my.jar -Durl=http://localhost:8081/repository/maven-public/ -DrepositoryId=nexus

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-deploy-plugin:2.8.2:deploy-file (default-cli) @ standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.902 s
[INFO] Finished at: 2017-02-28T22:24:18-05:00
[INFO] Final Memory: 12M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact com.apps:my:jar:1.0 from/to nexus(http://localhost:8081/repository/maven-public/): Failed to transfer file: http://localhost:8081/repository/maven-public/com/apps/my/1.0/my-1.0.jar. Return code is: 405, ReasonPhrase: PUT. -> [Help 1]

Thanks in advance.

Manfred Moser

unread,
Mar 1, 2017, 2:40:48 PM3/1/17
to nexus...@glists.sonatype.com, eddu.m...@gmail.com

You can not publish to a repository group.... it needs to be a hosted repository. Change the URL in your distributionManagement

Also see http://stackoverflow.com/questions/18649486/error-when-deploying-an-artifact-in-nexus/18702353#18702353

hth

Manfred

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/6a2abe47-8db8-4b7e-879f-62ef9cdda622%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
Reply all
Reply to author
Forward
0 new messages