My pom.xml (https://github.com/Pr0methean/BetterRandom/blob/master/betterrandom/pom.xml) is basically the same as what was generated when I configured my project for Maven Central, except that I've merged the duplicate configuration entries. When I run `release:perform` (see https://github.com/Pr0methean/BetterRandom/blob/master/release.sh for the full workflow), the repository appears in the Nexus UI but remains open. How do I close and release it from the shell script? This is blocking my adoption of Continuous Delivery.
I've tried adding `<goals>deploy nexus-staging:close nexus-staging:release</goals>` (https://github.com/Pr0methean/BetterRandom/commit/e3003a47d1dc85b42019612fff8d5431bae601a1#diff-72e9461a860120dce0abb615d8eda20b), but this fails because the `deploy` goal deletes the local copy, and thus `nexus-staging:close` doesn't know what repository to close. If I could suppress the deletion step in `deploy` and put it after `nexus-staging:release` (a feature I've requested in https://issues.apache.org/jira/browse/MRELEASE-1011) then I'd be fine.
In case it helps, here's the log from a run of release.sh, *with* <goals>deploy nexus-staging:close nexus-staging:release</goals>: https://pastebin.com/KirEzezn
--
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/2566e8f8-3f46-44f8-af26-bf0976c95b42%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ BetterRandom ---Therefore calling the goal nexus-staging:close is not going to work because there is no staging properties file from which to read the id of the created staging repository.Instead you should deploy using the nexus-staging-maven-plugin as recommended here:As to why the release plugin is not picking up the nexus-staging-maven-plugin as the alternative deploy hook, likely due to setting<mavenExecutorId>forked-path</mavenExecutorId>Your setup does not match exactly our suggestions:
I see that you've got configuration for the nexus-staging-maven-plugin in pluginManagement, but I don't see the plugin actually declared in "plugins".
(b) specify the version when I want it to be a production release rather than a snapshot release?
--
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/6e824b42-ec0e-47ee-b60b-3cf294a73540%40glists.sonatype.com.
It does: sonatype-nexus-staging
--
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/CAPvCkbjR4o1yH6QYpq_-3KrSY6FQJoj-tovvdoBbjEaH0GM_VQ%40mail.gmail.com.