git: a61f1f728f7b - main - devel/nexus2-oss: Bump and adapt consumer for sysutils/javaservicewrapper update

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Tue, 08 Sep 2026 09:59:24 UTC
The branch main has been updated by michaelo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a61f1f728f7b820bfd726a5372ef0e5685ba7d2a

commit a61f1f728f7b820bfd726a5372ef0e5685ba7d2a
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2026-09-07 20:26:42 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-09-08 09:59:04 +0000

    devel/nexus2-oss: Bump and adapt consumer for sysutils/javaservicewrapper update
---
 devel/nexus2-oss/Makefile                      |  8 ++++----
 devel/nexus2-oss/files/patch-conf_wrapper.conf |  7 ++++---
 devel/nexus2-oss/files/pkg-message.in          | 12 +++++++-----
 3 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/devel/nexus2-oss/Makefile b/devel/nexus2-oss/Makefile
index fc83b04dcfc7..ce06db6b9923 100644
--- a/devel/nexus2-oss/Makefile
+++ b/devel/nexus2-oss/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	nexus2
 PORTVERSION=	2.15.2
 DISTVERSIONSUFFIX=	03
+PORTREVISION=	1
 CATEGORIES=	devel www java
 MASTER_SITES=	https://download.sonatype.com/nexus/oss/
 PKGNAMESUFFIX=	-oss
@@ -39,10 +40,9 @@ GROUPS=		${NEXUS_GROUP}
 DATADIR=	${JAVASHAREDIR}/${PORTNAME}
 WRKSRC=		${WRKDIR}/nexus-${RELEASEVERSION}
 
-WRAPPER_DIR=	${PREFIX}/lib/javaservicewrapper
-WRAPPER_CMD=	${WRAPPER_DIR}/bin/wrapper
-WRAPPER_LIBDIR=	${WRAPPER_DIR}/lib
-WRAPPER_JAR=	${WRAPPER_LIBDIR}/wrapper.jar
+WRAPPER_CMD=	${PREFIX}/bin/wrapper
+WRAPPER_LIBDIR=	${PREFIX}/lib
+WRAPPER_JAR=	${JAVAJARDIR}/wrapper.jar
 
 NEXUS_RUNDIR=	/var/run/${PORTNAME}
 NEXUS_LOGDIR=	/var/log/${PORTNAME}
diff --git a/devel/nexus2-oss/files/patch-conf_wrapper.conf b/devel/nexus2-oss/files/patch-conf_wrapper.conf
index 3493ce233214..64bbc9d4826a 100644
--- a/devel/nexus2-oss/files/patch-conf_wrapper.conf
+++ b/devel/nexus2-oss/files/patch-conf_wrapper.conf
@@ -17,10 +17,11 @@
  
  # The JVM classpath
 -wrapper.java.classpath.1=bin/jsw/lib/wrapper-3.2.3.jar
-+wrapper.java.classpath.1=%%WRAPPER_JAR%%
- wrapper.java.classpath.2=./lib/*.jar
++wrapper.jarfile=%%WRAPPER_JAR%%
+-wrapper.java.classpath.2=./lib/*.jar
++wrapper.java.classpath.1=./lib/*.jar
 -wrapper.java.classpath.3=./conf/
-+wrapper.java.classpath.3=%%ETCDIR%%
++wrapper.java.classpath.2=%%ETCDIR%%
  
  # The library path
 -wrapper.java.library.path.1=bin/jsw/lib
diff --git a/devel/nexus2-oss/files/pkg-message.in b/devel/nexus2-oss/files/pkg-message.in
index 612378f0211e..b8ec615d92dd 100644
--- a/devel/nexus2-oss/files/pkg-message.in
+++ b/devel/nexus2-oss/files/pkg-message.in
@@ -7,7 +7,10 @@ To enable Nexus, add the following line to /etc/rc.conf[.local]:
 
   %%NEXUS_RC%%_enable="YES"
 
-IMPORTANT: Nexus runs by default as user %%USER%%!
+IMPORTANT:
+* Nexus runs by default as user %%USER%%!
+* javaservicewrapper must be compiled with a Java version which supports
+  Java 8 bytecode: OpenJDK older than version 25!
 
 Configuration
 =============
@@ -34,11 +37,10 @@ EOM
 },
 {
   type: upgrade
-  maximum_version: "2.15.1_1"
+  maximum_version: "2.15.2_1"
   message: <<EOM
-With the upgrade to javaservicewrapper-3.6.3 Nexus won't start unless you
-remove all properties ending with '.stripquotes' in your
-%%ETCDIR%%/wrapper.conf.
+With the upgrade to javaservicewrapper-3.7.3 Nexus won't start unless you
+review properties in your %%ETCDIR%%/wrapper.conf.
 EOM
 },
 { type: remove