Date: Thu, 05 Feb 2026 17:04:33 +0000 From: Ronald Klop <ronald@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 55cb6cd667eb - main - some Maven build ports: pass JAVA_HOME to maven Message-ID: <6984cda1.224d3.107a67de@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by ronald: URL: https://cgit.FreeBSD.org/ports/commit/?id=55cb6cd667eb9026fe2cc0cc2a7ef63bcd986e26 commit 55cb6cd667eb9026fe2cc0cc2a7ef63bcd986e26 Author: Ronald Klop <ronald@FreeBSD.org> AuthorDate: 2026-02-04 19:53:30 +0000 Commit: Ronald Klop <ronald@FreeBSD.org> CommitDate: 2026-02-05 17:03:53 +0000 some Maven build ports: pass JAVA_HOME to maven When a port defines JAVA_VERSION but during the build multiple jdk versions are installed, Maven does not always use the defined version if JAVA_HOME is not set in the environment. PR: 272855 Reviewed-by: https://lists.freebsd.org/archives/freebsd-java/2026-February/003537.html Approved-by: java@ --- biology/cytoscape/Makefile | 3 +++ cad/digital/Makefile | 3 ++- games/lizzie/Makefile | 2 ++ math/jacop/Makefile | 2 ++ math/jts/Makefile | 2 ++ science/cdk/Makefile | 2 ++ science/opsin/Makefile | 2 ++ security/owasp-dependency-check/Makefile | 2 ++ 8 files changed, 17 insertions(+), 1 deletion(-) diff --git a/biology/cytoscape/Makefile b/biology/cytoscape/Makefile index 3fe7a4436c2a..506c29817e4e 100644 --- a/biology/cytoscape/Makefile +++ b/biology/cytoscape/Makefile @@ -30,6 +30,9 @@ GH_TUPLE= ${PORTNAME}:${PORTNAME}-parent:${DISTVERSION}:p/parent \ ${PORTNAME}:${PORTNAME}-gui-distribution:${DISTVERSION}:g/gui-distribution \ ${PORTNAME}:${PORTNAME}-app-template:${DISTVERSION}:d/app-developer JAVA_VERSION= 8 # Needs JAXB which is in included in jdk8 but not in jdk11+. + +MAKE_ENV+= JAVA_HOME=${JAVA_HOME} + NO_ARCH= yes USER_WRKDIR= ~/.${PORTNAME} diff --git a/cad/digital/Makefile b/cad/digital/Makefile index dd8b15511961..9f8979b088d9 100644 --- a/cad/digital/Makefile +++ b/cad/digital/Makefile @@ -31,7 +31,8 @@ NO_ARCH= yes DEV_UPDATE_MODE= no -MAKE_ENV= MAVEN_HOME=/usr/local/share/java/apache-maven-3.8 # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283883 +MAKE_ENV= JAVA_HOME=${JAVA_HOME} \ + MAVEN_HOME=/usr/local/share/java/apache-maven-3.8 # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283883 .if (${DEV_UPDATE_MODE} == "yes") post-build: diff --git a/games/lizzie/Makefile b/games/lizzie/Makefile index 9595a72adb69..404bc66979b4 100644 --- a/games/lizzie/Makefile +++ b/games/lizzie/Makefile @@ -19,6 +19,8 @@ USE_GITHUB= yes GH_ACCOUNT= featurecat JAVA_VERSION= 8 # because of Bug 292662 - games/lizzie: does not build with jdk11+ +MAKE_ENV+= JAVA_HOME=${JAVA_HOME} + NO_ARCH= yes # to rebuild the deps archive: diff --git a/math/jacop/Makefile b/math/jacop/Makefile index e721b75b6893..fd3977e58634 100644 --- a/math/jacop/Makefile +++ b/math/jacop/Makefile @@ -19,6 +19,8 @@ USE_GITHUB= yes GH_ACCOUNT= radsz JAVA_VERSION= 8 11 17 +MAKE_ENV+= JAVA_HOME=${JAVA_HOME} + NO_ARCH= yes SUB_FILES= ${PORTNAME}.sh diff --git a/math/jts/Makefile b/math/jts/Makefile index e8204f77e97c..3a4b5a500adb 100644 --- a/math/jts/Makefile +++ b/math/jts/Makefile @@ -17,6 +17,8 @@ JAVA_VERSION= 11+ USE_GITHUB= yes GH_ACCOUNT= locationtech +MAKE_ENV+= JAVA_HOME=${JAVA_HOME} + NO_ARCH= yes VER= ${PORTVERSION:tl} diff --git a/science/cdk/Makefile b/science/cdk/Makefile index 28b3256a1f7a..3d6f0447be2a 100644 --- a/science/cdk/Makefile +++ b/science/cdk/Makefile @@ -17,6 +17,8 @@ USES= java USE_GITHUB= yes JAVA_VERSION= 17 # Java 8 fails on aarch64: Internal Error (assembler_aarch64.hpp:237), pid=68892, tid=0x000000000002b995 guarantee(val < (1U << nbits)) failed: Field too big for insn +MAKE_ENV+= JAVA_HOME=${JAVA_HOME} + NO_ARCH= yes PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar diff --git a/science/opsin/Makefile b/science/opsin/Makefile index b9c6e1f5da9d..c98ba8814dba 100644 --- a/science/opsin/Makefile +++ b/science/opsin/Makefile @@ -16,6 +16,8 @@ BUILD_DEPENDS= maven>0:devel/maven USES= java +MAKE_ENV+= JAVA_HOME=${JAVA_HOME} + NO_ARCH= yes BB_ACCOUNT= dan2097 diff --git a/security/owasp-dependency-check/Makefile b/security/owasp-dependency-check/Makefile index 2bbf67b3aaac..708f1d44ac43 100644 --- a/security/owasp-dependency-check/Makefile +++ b/security/owasp-dependency-check/Makefile @@ -28,6 +28,8 @@ GH_ACCOUNT= jeremylong GH_PROJECT= DependencyCheck JAVA_VERSION= 8 +MAKE_ENV+= JAVA_HOME=${JAVA_HOME} + NO_ARCH= yes SUB_FILES= owasp-dependency-check SUB_LIST= PORTVERSION=${PORTVERSION}home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6984cda1.224d3.107a67de>
