Skip to content

Commit e647e6d

Browse files
authored
fix: disable progress display (#1689)
A lot of the output of Maven looks like this: ``` Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB Progress (2): 54 MB | 193/259 MB ``` Enable batch mode to disable progress reporting (according to Stack Overflow).
1 parent a8d3a4e commit e647e6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/publib-maven.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ class Maven {
577577
public async exec(mojo: string, options: MavenExecOptions): Promise<ProcessOutput | undefined> {
578578
const args = [
579579
`--settings=${this.settingsFile}`,
580+
'--batch-mode',
580581
...(options.verbose ?? this.verbose ? ['-X'] : []),
581582
mojo,
582583
...Object.entries(options.properties).map(([k, v]) => `-D${k}=${v}`),

0 commit comments

Comments
 (0)