[Git][java-team/maven-debian-helper][master] Support the MAVEN_OPTS environment variable to pass JVM arguments

Emmanuel Bourg (@ebourg) gitlab at salsa.debian.org
Fri May 12 00:25:33 BST 2023



Emmanuel Bourg pushed to branch master at Debian Java Maintainers / maven-debian-helper


Commits:
ca687344 by Emmanuel Bourg at 2023-05-12T01:20:39+02:00
Support the MAVEN_OPTS environment variable to pass JVM arguments

- - - - -


2 changed files:

- debian/changelog
- share/perl/maven.pm


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+maven-debian-helper (2.6.3) unstable; urgency=medium
+
+  * Support the MAVEN_OPTS environment variable to pass JVM arguments
+    (such as --add-opens/--add-exports required to run old plugins on recent
+    JDKs)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Fri, 12 May 2023 01:20:16 +0200
+
 maven-debian-helper (2.6.2) unstable; urgency=medium
 
   * Team upload.


=====================================
share/perl/maven.pm
=====================================
@@ -40,6 +40,9 @@ sub new {
 	if (-e "$this->{cwd}/debian/maven.properties") {
 		push (@jvmopts, "-Dproperties.file.manual=$this->{cwd}/debian/maven.properties");
 	}
+	if (exists $ENV{MAVEN_OPTS}) {
+		push (@jvmopts, split(/ /, $ENV{MAVEN_OPTS}));
+	}
 
 	@{$this->{maven_cmd}} = ($java_home . '/bin/java',
 		@jvmopts,



View it on GitLab: https://salsa.debian.org/java-team/maven-debian-helper/-/commit/ca687344500141f54bf53883409b8c63e14bd14c

-- 
View it on GitLab: https://salsa.debian.org/java-team/maven-debian-helper/-/commit/ca687344500141f54bf53883409b8c63e14bd14c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20230511/6c1feef9/attachment.htm>


More information about the pkg-java-commits mailing list