diff --git a/pom.xml b/pom.xml
index be10e9ebdc16f57efb3d42380f6a5a1dcbf0af83..bffc68aea9d5b7c611eeea9b769713f48aa4afc5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1373,7 +1373,7 @@
 				<configuration>
 					<encoding>UTF-8</encoding>
 					<skipTests>${skipTests}</skipTests>
-					<argLine>-Xmx512m -Xms256m -Djava.awt.headless=true</argLine>
+					<argLine>@{argLine} -Xmx512m -Xms256m -Djava.awt.headless=true</argLine>
 					<systemPropertyVariables>
 						<java.io.tmpdir>${project.build.directory}/olatdata</java.io.tmpdir>
 					</systemPropertyVariables>
@@ -1395,7 +1395,7 @@
 					<skipITs>${skipSeleniumTests}</skipITs>
 					<skipTests>${skipSeleniumTests}</skipTests>
 					<reuseForks>false</reuseForks>
-					<argLine>-Xmx512m -Xms256m -Djava.awt.headless=true</argLine>
+					<argLine>@{argLine} -Xmx512m -Xms256m -Djava.awt.headless=true</argLine>
 					<trimStackTrace>false</trimStackTrace>
 					<systemPropertyVariables>
 						<profile>${test.env}</profile>