Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-10174

The nexus-staging-maven-plugin treats a read timeout as a rule failure, and drops repositories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.13
    • Fix Version/s: None
    • Labels:
    • Story Points:
      2

      Description

      The nexus-staging-maven-plugin treats a timeout as a staging rule failure, and (by default) automatically drops the repository.

      This is a bug, it means a slow Lifecycle scan will result in losing a staging repository.

      For reference, the default timeout for the nexus-staging-maven-plugin is 5 minutes. This can be configured via the stagingProgressTimeoutMinutes parameter.

      Waiting for operation to complete...
      .....................................................................................................
      [WARN] TIMEOUT after 301.3 s
      
      [ERROR] Rule failure while trying to close staging repository with ID "abc-1000".
      [ERROR] 
      [ERROR] Nexus Staging Rules Failure Report
      [ERROR] ==================================
      [ERROR] 
      [ERROR] 
      [ERROR] Cleaning up local stage directory after a Rule failure during close of staging repositories: []
      [ERROR]  * Deleting context 7eb7e095612.properties
      [ERROR] Cleaning up remote stage repositories after a Rule failure during close of staging repositories: []
      [ERROR]  * Dropping failed staging repository with ID "abc-1000" (Rule failure during close of staging repositories: []).
      
      Waiting for operation to complete...
      ..
      
      [ERROR] Remote staging finished with a failure: Staging rules failure!
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] Multi-Spring Chapter Parent Project ............... SUCCESS [1.292s]
      [INFO] Multi-Spring Chapter Simple Parent Project ........ SUCCESS [3.723s]
      [INFO] Multi-Spring Chapter Simple Object Model .......... SUCCESS [0.946s]
      [INFO] Multi-Spring Chapter Simple Weather API ........... SUCCESS [1.275s]
      [INFO] Multi-Spring Chapter Simple Persistence API ....... SUCCESS [0.631s]
      [INFO] Multi-Spring Chapter Simple Command Line Tool ..... SUCCESS [1.124s]
      [INFO] Multi-Spring Chapter Simple Web Application ....... FAILURE [5:09.330s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title