From nobody Thu Feb 05 11:57:20 2026 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f6G1R1pLNz6FXMl for ; Thu, 05 Feb 2026 11:57:31 +0000 (UTC) (envelope-from haraldei@anduin.net) Received: from mail.anduin.net (mail.anduin.net [185.42.170.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4f6G1Q6j8Rz3q7j; Thu, 05 Feb 2026 11:57:30 +0000 (UTC) (envelope-from haraldei@anduin.net) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anduin.net; s=dkim2021; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4/+EazOSmnnGeF/ZDvLfSeyWb4NINbSWmgoQ/P7mwH0=; t=1770292650; x=1771156650; b=WNpxledLWRKmOONDl7AuhBP6OIUSTN0dBMqDxvMq4seWTQgRgL+ihd3aT9KN6cCudmkmLgZTaZW McZpcmZPTSzR52DjTTrOWwUrC30D+/xpSCqkDVplcSyaMvOSmUaKAXjuKn+XuFLWTgoboh5aw9bSm KCBe/hE0ksUZHqTaxcMiX65aaLJItS7M5mnTAJKH4y11JS+HhQ2TbR42X4tzJQXtkHmwZNtiDvtd+ U8TzmqbcHwirHNYdUUGaMrecNtreFKdx52CXrAkE3047zW4kqCopQPM8GKZN2zIl00abPT3h/NERM dAJmsQczG4v6eoZLQfcX+/k9yueUdVNoQs4w==; Received: by mail.anduin.net with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.98.2 (FreeBSD)) (envelope-from ) id 1vnxz8-00000000Nzn-0Ay0; Thu, 05 Feb 2026 11:57:23 +0000 Date: Thu, 5 Feb 2026 12:57:20 +0100 From: Harald Eilertsen To: Ronald Klop Cc: java@freebsd.org Subject: Re: maven and java_home? Message-ID: References: List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Authenticated: Yes X-Spam-Score: -1.9 X-Spam-Level: - X-Spam-Report: host: mail.modirum.com | contact: hostmaster@modirum.com | scores: BAYES_00=-1.9,NO_RELAYS=-0.001 | autolearn=no autolearn_force=no, score=0 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62248, ipnet:185.42.170.0/24, country:EE] X-Rspamd-Queue-Id: 4f6G1Q6j8Rz3q7j X-Spamd-Bar: ---- Hi, On Thu, Feb 05, 2026 at 09:52:13AM +0100, Ronald Klop wrote: > When a port defines JAVA_VERSION but during the build multiple jdk versions are installed, maven does not use the defined version if JAVA_HOME is not set in the environment. That's a good find! The patch looks uncontroversial to me, so I'm fine with it. Nice work on upgrading default java to 21, btw! H!