On 2017-02-16 13:49, Peter Lynch wrote:
>> I took a look at the implementation and two more questions arose:
>> 1. I based my plugin on the generated REST API documentation:
>>
https://oss.sonatype.org/nexus-staging-plugin/default/
>> docs/path__staging_profiles_-profileIdKey-_promote.html
>> and
>>
https://oss.sonatype.org/nexus-staging-plugin/default/
>> docs/el_ns0_promoteRequest.html
>>
>> Unfortunately I don't see a "autoDropAfterRelease" field. Did you refer
>> to the same method call?
>
> Don't rely on that REST documentation. A better approach in your case since
> you are not a Pro licensed customer is to execute Maven commands invoked
> with the nexus-staging-maven-plugin and use an intercepting proxy like
> Charles <
https://charlesproxy.com> to examine the payloads being sent.
Intercepting proxy is some option, however in a case of "promote"
command it is quite ugly to test it in production - I don't want to have
a pack of dummy artifacts in The Central Repository.
It is possible to disable sync with Maven Central/TCR (e.g. via Jira)
for one particular project from my staging profile and use it for
testing purpose (or create a separate staging profile with sync
permanently disabled)? What would then happen with promoted artifacts then?
I was searching "autoDropAfterRelease" in nexus-maven-plugins code (to
see how it is done there) and it seems to be only used in a very generic
form (e.g. in Parameters.java). Is building a JSON/XML performed in the
another project?
Would you consider to publish somewhere an updated documentation of the
public Nexus API?
>> 2. I would like to test it before going to production. Is there a test
>> Nexus instance available to test it? Or I need to request a trial of
>> Nexus Pro to setup one locally?
>>
> You can request a trial - getting one should not be a problem.
Unfortunately I would be one-shot action to get a trial. During
development of the next feature I would need it again. The best for me
as an external plugin developer would be to have an instance (own - e.g.
using Docker or shared hosted by Sonatype) to be able to run acceptance
tests on a regular basis. If it is not available as an alternative I
would probably approach a creation a "fake" staging profile on the
production Nexus (as mentioned above) to release "dummy" artifacts from
time to time (unless you see a better option).
>>>>> email to
ossrh-users...@glists.sonatype.com.
>> email to
ossrh-users...@glists.sonatype.com.
>>
glists.sonatype.com/d/msgid/ossrh-users/74a7644c-e724-
>> 373f-f06d-5bc11e5b1238%
40wp.pl.