diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c5ab3c0..87091ee 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,14 +10,19 @@ pool: vmImage: ubuntu-latest steps: +- task: DownloadSecureFile@1 + name: mvnSettings + displayName: 'Download Maven settings' + inputs: + secureFile: 'maven-azuredevops-settings.xml' - task: Maven@3 inputs: mavenPomFile: 'pom.xml' - mavenOptions: '-Xmx3072m' + goals: 'deploy' + options: '-s $(mvnSettings.secureFilePath)' + mavenAuthenticateFeed: true + publishJUnitResults: true + testResultsFiles: '**/TEST-*.xml' javaHomeOption: 'JDKVersion' jdkVersionOption: '1.21' - mavenAuthenticateFeed: true - jdkArchitectureOption: 'x64' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' - goals: 'package' + mavenVersionOption: 'Default' \ No newline at end of file