File tree Expand file tree Collapse file tree
src/Microsoft.ComponentDetection.Detectors/maven Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,9 +104,11 @@ public class MvnCliComponentDetector : FileComponentDetector
104104 /// <summary>
105105 /// Maximum time allowed for the OnPrepareDetectionAsync phase.
106106 /// This is a safety guardrail to prevent hangs.
107- /// Most repos should complete the full Maven CLI scan within this window.
107+ /// The ADO task passes --Timeout 600 (10 min) to the .NET tool, which sits under a
108+ /// 12-minute decorator timeout. Setting this to 9 minutes keeps us safely below the
109+ /// .NET process timeout while giving Maven CLI maximum room to complete.
108110 /// </summary>
109- private static readonly TimeSpan PrepareDetectionTimeout = TimeSpan . FromMinutes ( 5 ) ;
111+ private static readonly TimeSpan PrepareDetectionTimeout = TimeSpan . FromMinutes ( 9 ) ;
110112
111113 private readonly IMavenCommandService mavenCommandService ;
112114 private readonly IEnvironmentVariableService envVarService ;
You can’t perform that action at this time.
0 commit comments