[Git][java-team/maven-debian-helper][debian/experimental] 4 commits: Support the MAVEN_OPTS environment variable to pass JVM arguments

Tony Mancill (@tmancill) gitlab at salsa.debian.org
Wed Dec 27 23:08:14 GMT 2023



Tony Mancill pushed to branch debian/experimental 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

- - - - -
c03c5403 by tony mancill at 2023-06-11T09:01:45-07:00
Merge branch 'debian/experimental' and update for 2.6.4

- - - - -
082b5b63 by tony mancill at 2023-12-27T14:16:51-08:00
Set jansi.mode=force when not otherwise provided (See: #1039607)

- - - - -
cda54181 by tony mancill at 2023-12-27T14:48:04-08:00
Prepare changelog for upload to experimental

- - - - -


2 changed files:

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


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,25 @@
+maven-debian-helper (2.6.5~exp1) experimental; urgency=medium
+
+  * Team upload to experimental.
+  * Set jansi.mode=force when not otherwise provided (See: #1039607)
+
+ -- tony mancill <tmancill at debian.org>  Wed, 27 Dec 2023 14:17:55 -0800
+
+maven-debian-helper (2.6.4) unstable; urgency=medium
+
+  * Team upload.
+  * Merge changes from 2.6.3~exp1 (Closes: #1007923)
+
+ -- tony mancill <tmancill at debian.org>  Sun, 11 Jun 2023 09:00:35 -0700
+
+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.3~exp1) experimental; urgency=medium
 
   * Team upload to experimental.


=====================================
share/perl/maven.pm
=====================================
@@ -40,6 +40,14 @@ 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}));
+	}
+	if (! grep(/-Djansi.mode=/, @jvmopts) ) {
+		# If jansi.mode is not provided, set it to 'force' for colorized Maven output.
+		# See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039607
+		push (@jvmopts, "-Djansi.mode=force");
+	}
 
 	@{$this->{maven_cmd}} = ($java_home . '/bin/java',
 		@jvmopts,



View it on GitLab: https://salsa.debian.org/java-team/maven-debian-helper/-/compare/375417c9b6e82c94f992908a1bd376964cc8a877...cda54181dc4dd86abc4b524b37dd99226e9be34b

-- 
View it on GitLab: https://salsa.debian.org/java-team/maven-debian-helper/-/compare/375417c9b6e82c94f992908a1bd376964cc8a877...cda54181dc4dd86abc4b524b37dd99226e9be34b
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/20231227/6b71e4f3/attachment.htm>


More information about the pkg-java-commits mailing list