Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30794

Support for nexus-staging-maven-plugin

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • m2release-plugin
    • None
    • n/a

      Staging support in Sonatype Nexus today is preferably handled via the nexus-staging-maven-plugin, which replace the default maven-deploy-plugin.

      It would be good with some support in m2release plugin for this by, for example, storing info on the created staging repo id. The nexus-staging-maven-plugin creates a properties file during execution (in the workspace) where this info is recorded:

      #Generated by org.sonatype.plugins:nexus-staging-maven-plugin:1.6.6
      #Mon Oct 05 13:35:43 CEST 2015
      stagingRepository.managed=true
      stagingRepository.profileId=ab12345cd67ef
      stagingRepository.id=test_staging-1001
      stagingRepository.url=http\://nexus.acme.org\:80/content/repositories/test_staging-1054

      What I'm thinking is that this info could then later on be used to promote/release or drop the staging repo programatically. The properties file is typically removed during the next Maven build (mvn clean install).

      We could also maybe depreacte the current Nexus Pro support in the plugin for automatically closing a staging repo as that is supported by the nexus-staing-maven-plugin out-of-the-box. Or that could be kept for those needing it and adding additional Nexus Pro/nexus-staging-maven-plugin support.

            Unassigned Unassigned
            ahammar Anders Hammar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: