Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
param([switch]$SkipTests = $true)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$rootPom = Join-Path (Split-Path $PSScriptRoot -Parent) 'pom.xml'
|
||||
$arguments = @('-f', $rootPom, 'clean', 'verify')
|
||||
if ($SkipTests) {
|
||||
$arguments += '-DskipTests'
|
||||
}
|
||||
|
||||
& mvn @arguments
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "MAVEN_BUILD_FAILED: $LASTEXITCODE"
|
||||
}
|
||||
Reference in New Issue
Block a user