git: 185c04f3c3c7 - 2026Q3 - games/jutils: Fix build if maven39 installed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Sep 2026 22:39:30 UTC
The branch 2026Q3 has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=185c04f3c3c7fc6304802eca5fdbfb1b8c5bbeca
commit 185c04f3c3c7fc6304802eca5fdbfb1b8c5bbeca
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-09-28 22:34:15 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-09-28 22:39:20 +0000
games/jutils: Fix build if maven39 installed
[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:3.5.4 or one of its dependencies could not be resolved:
[ERROR] Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-surefire-plugin:jar:3.5.4 has not been downloaded from it before.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Approved by: blanket (fix build)
Sponsored by: UNIS Labs
MFH: 2026Q3
(cherry picked from commit d5cc2f5d3fe60a240e642b2514c120b4395d4a16)
---
games/jutils/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/games/jutils/Makefile b/games/jutils/Makefile
index 69d90332e97e..e4f14d75b004 100644
--- a/games/jutils/Makefile
+++ b/games/jutils/Makefile
@@ -26,7 +26,8 @@ MAVEN_REPO= -Dmaven.repo.local=${WRKSRC}/repository
do-build:
cd ${WRKSRC}; \
- ${SETENV} mvn ${MAVEN_REPO} ${MAVEN_ARGS} --offline package
+ ${SETENV} MAVEN_HOME=${LOCALBASE}/share/java/apache-maven-3.8 \
+ mvn ${MAVEN_REPO} ${MAVEN_ARGS} --offline package
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}