From d3de56ec63d8b6e982e62578cabe0b597b2a4af9 Mon Sep 17 00:00:00 2001 From: Oliver <20188437+olivergrabinski@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:21:54 +0200 Subject: [PATCH 1/3] Add info on required JAVA_OPTS option --- .../getting-started/running-nexus/configuration/index.md | 2 +- .../main/paradox/docs/releases/v1.8-to-v1.9-migration.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/src/main/paradox/docs/getting-started/running-nexus/configuration/index.md b/docs/src/main/paradox/docs/getting-started/running-nexus/configuration/index.md index efe5bcea4a..f115790d87 100644 --- a/docs/src/main/paradox/docs/getting-started/running-nexus/configuration/index.md +++ b/docs/src/main/paradox/docs/getting-started/running-nexus/configuration/index.md @@ -10,7 +10,7 @@ There are 3 ways to modify the default configuration: environment variables. In order to enable this style of configuration, the JVM property `-Dconfig.override_with_env_vars=true` needs to be set. Once set, a configuration flag can be overridden. For example: `CONFIG_FORCE_app_http_interface="127.0.0.1"`. -In terms of JVM pool memory allocation, we recommend setting the following values to the `JAVA_OPTS` environment variable: `-Xms4g -Xmx4g`. The recommended values should be changed accordingly with the usage of Nexus Delta, the number of projects and the resources/schemas size. +In terms of JVM pool memory allocation, we recommend setting the following values to the `JAVA_OPTS` environment variable: `-Xms4g -Xmx4g --add-opens=java.base/java.lang=ALL-UNNAMED`. The recommended values should be changed accordingly with the usage of Nexus Delta, the number of projects and the resources/schemas size. In order to successfully run Nexus Delta there is a minimum set of configuration flags that need to be specified diff --git a/docs/src/main/paradox/docs/releases/v1.8-to-v1.9-migration.md b/docs/src/main/paradox/docs/releases/v1.8-to-v1.9-migration.md index 235a7f896c..f8d9e976c3 100644 --- a/docs/src/main/paradox/docs/releases/v1.8-to-v1.9-migration.md +++ b/docs/src/main/paradox/docs/releases/v1.8-to-v1.9-migration.md @@ -49,3 +49,11 @@ Currently, both remote storages and composite views with remote sources can hold A remote storage might currently have a token stored in the storage definition. In 1.9, this should be moved to `plugins.storage.storages.remote-disk.credentials`, as shown @ref:[here](../getting-started/running-nexus/configuration/index.md#remote-storage-configuration) A composite view might currently have a token stored in the view definition. In 1.9, this should be moved to `plugins.composite-views.remote-source-credentials`, as shown @ref:[here](../getting-started/running-nexus/configuration/index.md#composite-views-plugin-configuration) + +## Java options + +As the official Nexus Delta image moves to JRE 17, one dependency now requires the addition of +`--add-opens=java.base/java.lang=ALL-UNNAMED` in `JAVA_OPTS`. This option is present by +default in the image. However, if you are setting a custom value for `JAVA_OPTS` in your +deployment, it is required to append `--add-opens=java.base/java.lang=ALL-UNNAMED` to it. +This is because the custom value will override the one from the image. From b0249c4bfe2c4f89d3c2b0237ed3de86ce349a0e Mon Sep 17 00:00:00 2001 From: Oliver <20188437+olivergrabinski@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:22:45 +0200 Subject: [PATCH 2/3] Force linking in test --- tests/docker/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index 91e5828e8e..d7bf81080b 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -23,7 +23,7 @@ services: - '/bin/bash' - '-c' - | - ln -s /opt/docker/plugins/disabled/project-deletion.jar /opt/docker/plugins/project-deletion.jar && + ln -sf /opt/docker/plugins/disabled/project-deletion.jar /opt/docker/plugins/project-deletion.jar && /opt/docker/bin/delta-app -Xmx4G ports: - 8080:8080 From e4097ea44413468a6f0d8bc4c9fcd6fd381560de Mon Sep 17 00:00:00 2001 From: Oliver <20188437+olivergrabinski@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:24:11 +0200 Subject: [PATCH 3/3] Remove cache from release/snapshot pipelines --- .github/workflows/ci-release-docker.yml | 1 - .github/workflows/ci-release-sonatype.yml | 1 - .github/workflows/ci-snapshot.yml | 1 - 3 files changed, 3 deletions(-) diff --git a/.github/workflows/ci-release-docker.yml b/.github/workflows/ci-release-docker.yml index d2710f8d07..6de9164a98 100644 --- a/.github/workflows/ci-release-docker.yml +++ b/.github/workflows/ci-release-docker.yml @@ -21,7 +21,6 @@ jobs: distribution: 'temurin' java-version: '17' check-latest: true - cache: 'sbt' - name: Set up proxy for docker buildx run: | echo http_proxy=${http_proxy} >> $GITHUB_ENV diff --git a/.github/workflows/ci-release-sonatype.yml b/.github/workflows/ci-release-sonatype.yml index 8e8e5c0c63..849f0bab6b 100644 --- a/.github/workflows/ci-release-sonatype.yml +++ b/.github/workflows/ci-release-sonatype.yml @@ -27,6 +27,5 @@ jobs: distribution: 'temurin' java-version: '17' check-latest: true - cache: 'sbt' - name: Publish To Sonatype run: sbt -Dsbt.color=always -Dsbt.supershell=false ci-release \ No newline at end of file diff --git a/.github/workflows/ci-snapshot.yml b/.github/workflows/ci-snapshot.yml index fd9118ee48..84ce50dc60 100644 --- a/.github/workflows/ci-snapshot.yml +++ b/.github/workflows/ci-snapshot.yml @@ -28,7 +28,6 @@ jobs: distribution: 'temurin' java-version: '17' check-latest: true - cache: 'sbt' - name: Set up proxy for docker buildx run: | echo http_proxy=${http_proxy} >> $GITHUB_ENV