Update Xwiki using a proxy

The connection to nexus.xwiki.org is blocked on my server,how can I update xwiki using a proxy?

This depends on your environment … Linux/Windows and the Java Container used. For Tomcat this would probably be something like this

SET JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost= -Dhttp.proxyPort=

For https url’s, use “https.proxyHost” and “https.proxyPort”

solved,seemed to duplicated with Standalone version behind proxy.
I’m using tomcat with catalina installed by deb package, so the settings locate in /usr/share/tomcat9/bin/catalina.sh

Actually as suggested on Installation using Debian (.DEB) packages (XWiki.org) a more accurate configuration file is /etc/default/tomcat9.