You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nexus-staging-plugin does not fully substitute the maven-deploy plugin.
The deploy-file goal is not supported.
B2 uses deploy-file to only upload important artifacts.
It would be nice to have a solution (somehow use maven:deploy) or even path the staging plugin (wrong place for the issue - i know)
I already filed a ticket with Sonatype and got this reply:
Answer from Sonatype:
Hi XXX,
We aren't planning any major new features for the nexus-staging-maven-plugin at this time because the staging feature is undergoing major changes in Nexus 3.x.
However, there are several ways you can achieve what you want using current functionality.
You could use a file:// URL with the maven-deploy-plugin:deploy-file goal, and then use the "deploy-staged-repository" of the nexus-staging-maven-plugin to stage the locally deployed repository to nexus.
Alternatively, you can use the REST API to upload artifacts to staging. The endpoint needed is "/service/local/staging/upload", and the syntax needed is pretty similar to the regular REST API for upload.
Using curl you could do this with: curl -v -F e=jar -F g=com.test -F a=project -F v=1.0 -F p=jar -F [email protected] -F desc="some description" -u admin:admin123 http://localhost:8081/nexus/service/local/staging/upload
The nexus-staging-plugin does not fully substitute the maven-deploy plugin.
The deploy-file goal is not supported.
B2 uses deploy-file to only upload important artifacts.
It would be nice to have a solution (somehow use maven:deploy) or even path the staging plugin (wrong place for the issue - i know)
I already filed a ticket with Sonatype and got this reply:
Answer from Sonatype:
The text was updated successfully, but these errors were encountered: