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 <ebo...@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.


_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to