Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Dec 2025 18:08:19 +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: 412c7e0bf20e - main - sysutils/jvmtop: pin to java 8
Message-ID:  <6952c393.348d1.48872797@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=412c7e0bf20ea487b355b2096e1645d416074e63

commit 412c7e0bf20ea487b355b2096e1645d416074e63
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 08:48:32 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-29 18:07:50 +0000

    sysutils/jvmtop: pin to java 8
    
    It misses tools.jar when building with jdk11+.
    
    [ERROR] Failed to execute goal on project jvmtop: Could not resolve dependencies for project com.jvmtop:jvmtop:jar:0.9.0-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.6 at specified path /usr/local/openjdk11/../lib/tools.jar -> [Help 1]
    
    NB: upstream repo is inactive for 9 years. A fork (https://github.com/MOschIT/jvmtop)
    claims jdk21 support, but that is outside of the scope of the issue I'm trying to solve.
    
    PR:     291538
    Approved-By:    maintainer timeout
---
 sysutils/jvmtop/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysutils/jvmtop/Makefile b/sysutils/jvmtop/Makefile
index c1955ac6263e..c423d315575c 100644
--- a/sysutils/jvmtop/Makefile
+++ b/sysutils/jvmtop/Makefile
@@ -28,12 +28,13 @@ BUILD=	0.9.0
 
 GH_ACCOUNT=	patric-r
 USE_GITHUB=	yes
+JAVA_VERSION=	8
 
 post-extract:
 	@${TAR} -xf ${DISTDIR}/jvmtop-maven-repository-${BUILD}.tar.gz -C ${WRKSRC}
 
 do-build:
-	cd ${WRKSRC} && ${LOCALBASE}/bin/mvn -o -Dmaven.repo.local=.m2/repository ${INSTALL}
+	cd ${WRKSRC} && JAVA_HOME=${JAVA_HOME} ${LOCALBASE}/bin/mvn -o -Dmaven.repo.local=.m2/repository ${INSTALL}
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6952c393.348d1.48872797>