Skip to content

Commit 4b26796

Browse files
committed
Bump mvn cli detector timeout to 9 min
1 parent f40d70c commit 4b26796

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Microsoft.ComponentDetection.Detectors/maven/MvnCliComponentDetector.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)