Skip to content

Commit c596cac

Browse files
committed
use env containing MAVEN_OPTS also when running mx.maven_deploy
1 parent 1312378 commit c596cac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,11 @@ def deploy_local_maven_repo():
980980
if not DISABLE_REBUILD:
981981
mx.rmtree(path, ignore_errors=True)
982982
os.mkdir(path)
983-
mx.maven_deploy(deploy_args)
983+
if m2_cache:
984+
with set_env(MAVEN_OPTS = maven_opts):
985+
mx.maven_deploy(deploy_args)
986+
else:
987+
mx.maven_deploy(deploy_args)
984988
return path, version
985989

986990

0 commit comments

Comments
 (0)