Skip to content

Commit d81c244

Browse files
[Java] Increase java compiler stack size to handle large files (#5901)
* increase java compiler stack size to handle large files * increase java compiler stack size to handle large files
1 parent cc09118 commit d81c244

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<maxmem>512m</maxmem>
5151
<compilerArgs>
5252
<arg>-Xlint:all</arg>
53+
<arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
5354
</compilerArgs>
5455
</configuration>
5556
</plugin>

modules/openapi-generator/src/main/resources/Java/pom.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<maxmem>512m</maxmem>
5151
<compilerArgs>
5252
<arg>-Xlint:all</arg>
53+
<arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
5354
</compilerArgs>
5455
</configuration>
5556
</plugin>

samples/client/petstore/java/jersey1/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<maxmem>512m</maxmem>
4444
<compilerArgs>
4545
<arg>-Xlint:all</arg>
46+
<arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
4647
</compilerArgs>
4748
</configuration>
4849
</plugin>

samples/client/petstore/java/okhttp-gson-parcelableModel/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<maxmem>512m</maxmem>
4444
<compilerArgs>
4545
<arg>-Xlint:all</arg>
46+
<arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
4647
</compilerArgs>
4748
</configuration>
4849
</plugin>

samples/client/petstore/java/okhttp-gson/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<maxmem>512m</maxmem>
4444
<compilerArgs>
4545
<arg>-Xlint:all</arg>
46+
<arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
4647
</compilerArgs>
4748
</configuration>
4849
</plugin>

0 commit comments

Comments
 (0)