Skip to content

Commit b2cc8b7

Browse files
ci: Increase Maven heap for release tasks (#2653)
* Use Maven task in release pipeline Replace Maven wrapper invocations with Maven@4 tasks so network-isolated builds use the hosted Maven installation and authenticated Azure Artifacts mirror. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 94192e5b-ed23-41af-8495-a1b4a0f9689e * Increase Maven task heap size Configure the release pipeline Maven tasks with a 3 GB JVM heap so javac can compile the generated SDK sources without exhausting its default heap. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 94192e5b-ed23-41af-8495-a1b4a0f9689e --------- Co-authored-by: Ramses Sanchez-Hernandez <63934382+ramsessanchez@users.noreply.github.com> Copilot-Session: 94192e5b-ed23-41af-8495-a1b4a0f9689e
1 parent ea707a6 commit b2cc8b7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.azure-pipelines/ci-build.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ extends:
112112
javaHomeOption: 'JDKVersion'
113113
jdkVersionOption: '1.21'
114114
jdkArchitectureOption: 'x64'
115+
mavenOptions: '-Xmx3072m'
115116

116117
- task: Maven@4
117118
displayName: Publish to local Maven for verification
@@ -124,6 +125,7 @@ extends:
124125
javaHomeOption: 'JDKVersion'
125126
jdkVersionOption: '1.21'
126127
jdkArchitectureOption: 'x64'
128+
mavenOptions: '-Xmx3072m'
127129

128130
- task: Maven@4
129131
displayName: Stage artifacts for ESRP
@@ -136,6 +138,7 @@ extends:
136138
javaHomeOption: 'JDKVersion'
137139
jdkVersionOption: '1.21'
138140
jdkArchitectureOption: 'x64'
141+
mavenOptions: '-Xmx3072m'
139142

140143
- task: Maven@4
141144
displayName: Stage artifacts for ESRP
@@ -148,6 +151,7 @@ extends:
148151
javaHomeOption: 'JDKVersion'
149152
jdkVersionOption: '1.21'
150153
jdkArchitectureOption: 'x64'
154+
mavenOptions: '-Xmx3072m'
151155

152156
- pwsh: |
153157
$pomXml = [xml](Get-Content pom.xml -Raw)

0 commit comments

Comments
 (0)