You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2022/02/14 17:19:00 UTC
[sling-org-apache-sling-starter] branch master updated: SLING-11143 - Work around SLING-10831 by adding an add-opens flag to the Starter entrypoint
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter.git
The following commit(s) were added to refs/heads/master by this push:
new 6732f20 SLING-11143 - Work around SLING-10831 by adding an add-opens flag to the Starter entrypoint
6732f20 is described below
commit 6732f200a77a937c7e555d4ebced63bb256ecb01
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Feb 14 18:08:08 2022 +0100
SLING-11143 - Work around SLING-10831 by adding an add-opens flag to the Starter entrypoint
---
src/main/container/bin/launch.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/main/container/bin/launch.sh b/src/main/container/bin/launch.sh
index 826d763..26ac031 100755
--- a/src/main/container/bin/launch.sh
+++ b/src/main/container/bin/launch.sh
@@ -33,7 +33,10 @@ echo "[INFO] Automatically appended ${docker_feature}"
feature="${feature},${docker_feature}"
-exec java -jar org.apache.sling.feature.launcher.jar \
+# remove add-opens after SLING-10831 is fixed
+exec java \
+ --add-opens java.base/java.lang=ALL-UNNAMED \
+ -jar org.apache.sling.feature.launcher.jar \
-c artifacts \
-CC "org.apache.sling.commons.log.LogManager=MERGE_LATEST" \
- -f ${feature}
\ No newline at end of file
+ -f ${feature}