git: 87d39d9478ce - 2026Q3 - games/jinput: Fix build if maven39 installed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Sep 2026 22:46:53 UTC
The branch 2026Q3 has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=87d39d9478ce45471370f1a6e14c2748f0cacad0
commit 87d39d9478ce45471370f1a6e14c2748f0cacad0
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-09-28 22:43:58 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-09-28 22:46:48 +0000
games/jinput: Fix build if maven39 installed
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:3.4.0 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-resources-plugin:jar:3.4.0 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 5a8f4f19bebcaf728753b7f8f5e3f5837b56bda1)
---
games/jinput/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/games/jinput/Makefile b/games/jinput/Makefile
index 599b7811f88a..4ce25cfe665c 100644
--- a/games/jinput/Makefile
+++ b/games/jinput/Makefile
@@ -34,7 +34,8 @@ pre-build:
do-build:
cd ${WRKSRC}; \
- ${SETENV} mvn -P windows,linux,osx,wintab ${MAVEN_REPO} ${MAVEN_ARGS} --offline package
+ ${SETENV} MAVEN_HOME=${LOCALBASE}/share/java/apache-maven-3.8 \
+ mvn -P windows,linux,osx,wintab ${MAVEN_REPO} ${MAVEN_ARGS} --offline package
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}