From 4ef586b7b36efe1ff8a0967a6b354f4d4f492162 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Sat, 11 Jul 2026 00:23:23 +0200 Subject: [PATCH 01/41] bug6269: started new Github Actions workflow to build and upload AWS SDK p2 repo --- .github/workflows/build-aws-sdk-p2.yml | 95 ++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 .github/workflows/build-aws-sdk-p2.yml diff --git a/.github/workflows/build-aws-sdk-p2.yml b/.github/workflows/build-aws-sdk-p2.yml new file mode 100644 index 00000000000..328d861dca3 --- /dev/null +++ b/.github/workflows/build-aws-sdk-p2.yml @@ -0,0 +1,95 @@ +name: release +on: + push: + branches: [main] + paths: + - 'java/com.amazon.aws.aws-java-api/**' + - 'java/com.amazon.aws.aws-java-api.updatesite/**' + workflow_dispatch: {} + +jobs: + build-aws-sdk-p2: + permissions: + contents: write + checks: write + actions: read + runs-on: 'ubuntu-latest' + steps: + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@v1.3.1 + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: false + dotnet: true + haskell: true + large-packages: true + docker-images: false + swap-storage: true + - name: Collect Workflow Telemetry + uses: catchpoint/workflow-telemetry-action@94c3c3d9567a0205de6da68a76c428ce4e769af1 # v2.0.0 + with: + comment_on_pr: false + - name: Check out the repository to the runner + uses: actions/checkout@v4 + with: + fetch-depth: '500' + - name: Install JDK 8 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '8' + mvn-toolchain-id: 'JavaSE-1.8' + - name: Install JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '17' + mvn-toolchain-id: 'JavaSE-17' + - shell: bash + env: # Or as an environment variable + TMP: /mnt/tmp + GOOGLE_MAPS_AUTHENTICATION_PARAMS: ${{ secrets.GOOGLE_MAPS_AUTHENTICATION_PARAMS }} + POLAR_DATA_BASE_URL: ${{ vars.POLAR_DATA_BASE_URL }} + JAVA8_HOME: ${{env.JAVA_HOME_8_X64}} + JAVA17_HOME: ${{env.JAVA_HOME_17_X64}} + run: | + ./java/com.amazon.aws.aws-java-api/createLocalAwsApiP2Repository.sh 2>&1 >build.log + - name: Upload build log + uses: actions/upload-artifact@v4 + if: always() + with: + name: build.log + path: build.log + retention-days: 90 + - name: Upload p2 site as artifact + uses: actions/upload-artifact@v4 + with: + TODO: grab p2 repo output and zip it up... + name: awk-sdk-p2 + path: java/com.amazon.aws.aws-java-api/target/repository/**/* + retention-days: 90 + - name: Upload p2 site to target share + env: + CI_JOB_USERNAME: ${{ vars.CI_JOB_USERNAME }} + CI_JOB_PASSWORD: ${{ secrets.CI_JOB_PASSWORD }} + CI_JOB_TOKEN: ${{ secrets.CI_JOB_TOKEN }} + if: ${{ always() && env.CI_JOB_USERNAME != '' && env.CI_JOB_PASSWORD != '' && env.CI_JOB_TOKEN != '' }} + shell: bash + run: | + eval "$(ssh-agent -s)" + cat > askpass.sh <<'EOF' + #!/bin/sh + echo "$SCP_PASSPHRASE" + EOF + chmod 700 askpass.sh + export SCP_PASSPHRASE="${{ secrets.SCP_PASSPHRASE }}" + export SSH_ASKPASS="$PWD/askpass.sh" + export DISPLAY=:0 + printf '%s\n' "${{ secrets.SCP_KEY }}" > id_ed25519 + chmod 600 id_ed25519 + setsid ssh-add id_ed25519 Date: Sat, 11 Jul 2026 00:35:30 +0200 Subject: [PATCH 02/41] first untested version of AWS SDK build/upload Github Actions workflow --- .github/workflows/build-aws-sdk-p2.yml | 34 +++++++++----------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-aws-sdk-p2.yml b/.github/workflows/build-aws-sdk-p2.yml index 328d861dca3..61d4b7c280d 100644 --- a/.github/workflows/build-aws-sdk-p2.yml +++ b/.github/workflows/build-aws-sdk-p2.yml @@ -56,6 +56,9 @@ jobs: POLAR_DATA_BASE_URL: ${{ vars.POLAR_DATA_BASE_URL }} JAVA8_HOME: ${{env.JAVA_HOME_8_X64}} JAVA17_HOME: ${{env.JAVA_HOME_17_X64}} + SCP_USERNAME: ${{ vars.SCP_USERNAME }} + SCP_KEY: ${{ secrets.SCP_KEY }} + SCP_PASSPHRASE: ${{ secrets.SCP_PASSPHRASE }} run: | ./java/com.amazon.aws.aws-java-api/createLocalAwsApiP2Repository.sh 2>&1 >build.log - name: Upload build log @@ -68,28 +71,15 @@ jobs: - name: Upload p2 site as artifact uses: actions/upload-artifact@v4 with: - TODO: grab p2 repo output and zip it up... name: awk-sdk-p2 path: java/com.amazon.aws.aws-java-api/target/repository/**/* retention-days: 90 - - name: Upload p2 site to target share - env: - CI_JOB_USERNAME: ${{ vars.CI_JOB_USERNAME }} - CI_JOB_PASSWORD: ${{ secrets.CI_JOB_PASSWORD }} - CI_JOB_TOKEN: ${{ secrets.CI_JOB_TOKEN }} - if: ${{ always() && env.CI_JOB_USERNAME != '' && env.CI_JOB_PASSWORD != '' && env.CI_JOB_TOKEN != '' }} - shell: bash - run: | - eval "$(ssh-agent -s)" - cat > askpass.sh <<'EOF' - #!/bin/sh - echo "$SCP_PASSPHRASE" - EOF - chmod 700 askpass.sh - export SCP_PASSPHRASE="${{ secrets.SCP_PASSPHRASE }}" - export SSH_ASKPASS="$PWD/askpass.sh" - export DISPLAY=:0 - printf '%s\n' "${{ secrets.SCP_KEY }}" > id_ed25519 - chmod 600 id_ed25519 - setsid ssh-add id_ed25519 Date: Sat, 11 Jul 2026 00:43:16 +0200 Subject: [PATCH 03/41] bug6269: no need to set SCP_... env vars --- .github/workflows/build-aws-sdk-p2.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build-aws-sdk-p2.yml b/.github/workflows/build-aws-sdk-p2.yml index 61d4b7c280d..b4d1bd88c1c 100644 --- a/.github/workflows/build-aws-sdk-p2.yml +++ b/.github/workflows/build-aws-sdk-p2.yml @@ -56,9 +56,6 @@ jobs: POLAR_DATA_BASE_URL: ${{ vars.POLAR_DATA_BASE_URL }} JAVA8_HOME: ${{env.JAVA_HOME_8_X64}} JAVA17_HOME: ${{env.JAVA_HOME_17_X64}} - SCP_USERNAME: ${{ vars.SCP_USERNAME }} - SCP_KEY: ${{ secrets.SCP_KEY }} - SCP_PASSPHRASE: ${{ secrets.SCP_PASSPHRASE }} run: | ./java/com.amazon.aws.aws-java-api/createLocalAwsApiP2Repository.sh 2>&1 >build.log - name: Upload build log From 2d90c99c631416ab2e4e83c31d89d7204cd11c20 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Sat, 11 Jul 2026 01:39:50 +0200 Subject: [PATCH 04/41] bug6269: grab AWS SDK version from build.gradle in correct path --- .github/workflows/build-aws-sdk-p2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-aws-sdk-p2.yml b/.github/workflows/build-aws-sdk-p2.yml index 51524ccb964..e3f7f797d9a 100644 --- a/.github/workflows/build-aws-sdk-p2.yml +++ b/.github/workflows/build-aws-sdk-p2.yml @@ -56,7 +56,7 @@ jobs: JAVA17_HOME: ${{env.JAVA_HOME_17_X64}} run: | ./java/com.amazon.aws.aws-java-api/createLocalAwsApiP2Repository.sh 2>&1 | tee build.log - echo "VERSION=$( cat build.gradle | grep "implementation platform('software.amazon.awssdk:bom:[0-9.]*')" | sed -e 's/^\s*implementation platform('\''software\.amazon\.awssdk:bom:\([0-9.]*\)'\'')/\1/' )" >>${GITHUB_ENV} + echo "VERSION=$( cat java/com.amazon.aws.aws-java-api/build.gradle | grep "implementation platform('software.amazon.awssdk:bom:[0-9.]*')" | sed -e 's/^\s*implementation platform('\''software\.amazon\.awssdk:bom:\([0-9.]*\)'\'')/\1/' )" >>${GITHUB_ENV} - name: Upload build log uses: actions/upload-artifact@v4 if: always() From d7e8537a2a7bb46528a1c9b0922b6b65161497c9 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Sat, 11 Jul 2026 01:50:14 +0200 Subject: [PATCH 05/41] bug6269: upgrade to AWS SDK 2.47.5 --- java/com.amazon.aws.aws-java-api/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/com.amazon.aws.aws-java-api/build.gradle b/java/com.amazon.aws.aws-java-api/build.gradle index 6e202b3f6f8..2028663ab4e 100644 --- a/java/com.amazon.aws.aws-java-api/build.gradle +++ b/java/com.amazon.aws.aws-java-api/build.gradle @@ -5,7 +5,7 @@ repositories { } dependencies { - implementation platform('software.amazon.awssdk:bom:2.32.25') + implementation platform('software.amazon.awssdk:bom:2.47.5') implementation 'software.amazon.awssdk:s3' implementation 'software.amazon.awssdk:lambda' implementation 'software.amazon.awssdk:ec2' From aa8690857bbcb4714ffcede7c178717e2a91e9c2 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Sat, 11 Jul 2026 01:52:48 +0200 Subject: [PATCH 06/41] bug6269: upgrade AWS SDK usages to 2.47.5 --- .../features/aws-sdk/feature.xml | 6 +++--- java/com.amazon.aws.aws-java-api.updatesite/site.xml | 2 +- java/com.amazon.aws.aws-java-api/pom.xml | 2 +- .../definitions/race-analysis-p2-remote.target | 2 +- java/com.sap.sse.feature.runtime/feature.xml | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/java/com.amazon.aws.aws-java-api.updatesite/features/aws-sdk/feature.xml b/java/com.amazon.aws.aws-java-api.updatesite/features/aws-sdk/feature.xml index 566befc4ca6..1bd2e3a07a8 100755 --- a/java/com.amazon.aws.aws-java-api.updatesite/features/aws-sdk/feature.xml +++ b/java/com.amazon.aws.aws-java-api.updatesite/features/aws-sdk/feature.xml @@ -2,21 +2,21 @@ diff --git a/java/com.amazon.aws.aws-java-api.updatesite/site.xml b/java/com.amazon.aws.aws-java-api.updatesite/site.xml index cf215f690e0..691780db9ce 100755 --- a/java/com.amazon.aws.aws-java-api.updatesite/site.xml +++ b/java/com.amazon.aws.aws-java-api.updatesite/site.xml @@ -1,6 +1,6 @@ - + diff --git a/java/com.amazon.aws.aws-java-api/pom.xml b/java/com.amazon.aws.aws-java-api/pom.xml index c5ee735868a..8c882c83e06 100644 --- a/java/com.amazon.aws.aws-java-api/pom.xml +++ b/java/com.amazon.aws.aws-java-api/pom.xml @@ -16,7 +16,7 @@ com.amazon.aws com.amazon.aws.aws-java-api - 2.32.25 + 2.47.5 eclipse-plugin diff --git a/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-remote.target b/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-remote.target index f487ded2b66..df0355169c3 100755 --- a/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-remote.target +++ b/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-remote.target @@ -182,7 +182,7 @@ - + diff --git a/java/com.sap.sse.feature.runtime/feature.xml b/java/com.sap.sse.feature.runtime/feature.xml index 69aadde8ee0..92a1516f14e 100644 --- a/java/com.sap.sse.feature.runtime/feature.xml +++ b/java/com.sap.sse.feature.runtime/feature.xml @@ -789,14 +789,14 @@ id="com.amazon.aws.aws-java-api" download-size="0" install-size="0" - version="2.32.25" + version="2.47.5" unpack="false"/> Date: Sat, 11 Jul 2026 01:54:38 +0200 Subject: [PATCH 07/41] bug6269: switch URL for AWS SDK p2 repo in target platform definition to download.eclipse.org/sailing-analytics/p2/aws-sdk --- .../definitions/race-analysis-p2-jsp.target | 2 +- .../definitions/race-analysis-p2-remote.target | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-jsp.target b/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-jsp.target index acc432902ea..f17d9bc5f52 100644 --- a/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-jsp.target +++ b/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-jsp.target @@ -116,7 +116,7 @@ - + diff --git a/java/com.sap.sailing.targetplatform/scripts/createLocalTargetDef.sh b/java/com.sap.sailing.targetplatform/scripts/createLocalTargetDef.sh index f26d5cbb006..6fe37477d68 100755 --- a/java/com.sap.sailing.targetplatform/scripts/createLocalTargetDef.sh +++ b/java/com.sap.sailing.targetplatform/scripts/createLocalTargetDef.sh @@ -2,8 +2,8 @@ source ./../../../configuration/correctFilePathInRelationToCurrentOs.sh # generate a target definition pointing to the locally built p2 repo from the race-analysis-p2-remote target defintion base="../definitions/race-analysis-p2" -remote_repo="https://p2.sapsailing.com/p2/sailing/" -remote_repo_aws_sdk="https://p2.sapsailing.com/p2/aws-sdk/" +remote_repo="https://download.eclipse.org/sailing-analytics/p2/sailing/" +remote_repo_aws_sdk="https://download.eclipse.org/sailing-analytics/p2/aws-sdk/" # reading the filepath and editing it, so it fits for eclipse # currently safely works for cygwin, gitbash and linux local_repo=$(correct_file_path "`readlink -f ../../com.sap.sailing.targetplatform.base/target/repository/`") From a634231c2b0fbd164fa81962cf604e2c42310143 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 14 Jul 2026 03:39:17 +0200 Subject: [PATCH 34/41] bug6269: install GWT fork, particularly the Maven plugin --- .github/workflows/build-sailing-base-p2.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-sailing-base-p2.yml b/.github/workflows/build-sailing-base-p2.yml index 13387da2e4f..592db328b05 100644 --- a/.github/workflows/build-sailing-base-p2.yml +++ b/.github/workflows/build-sailing-base-p2.yml @@ -37,6 +37,7 @@ jobs: JAVA8_HOME: ${{env.JAVA_HOME_8_X64}} JAVA17_HOME: ${{env.JAVA_HOME_17_X64}} run: | + configuration/install-gwt-from-fork-releases https://github.com/eclipse-sailing-analytics/gwt-forward-serialization-rpc https://github.com/eclipse-sailing-analytics/gwt-maven-plugin-forward-serialization-rpc 2.12.4 . ./java/com.sap.sailing.targetplatform/scripts/createLocalBaseP2repository.sh 2>&1 | tee build.log echo "BUILD_TIME=$(date -u +"%Y%m%dT%H%M%SZ")" >> "$GITHUB_ENV" - name: Upload build log From fe0ee7e406faf79b23e389cd9ed1ae1bdfed6d73 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 14 Jul 2026 03:52:38 +0200 Subject: [PATCH 35/41] bug6269: constrain path filter for build-sailing-base-p2.yml properly --- .github/workflows/build-sailing-base-p2.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-sailing-base-p2.yml b/.github/workflows/build-sailing-base-p2.yml index 592db328b05..68e370188ea 100644 --- a/.github/workflows/build-sailing-base-p2.yml +++ b/.github/workflows/build-sailing-base-p2.yml @@ -3,8 +3,7 @@ on: push: branches: [main, bug6269] paths: - - 'java/com.amazon.aws.aws-java-api/**' - - 'java/com.amazon.aws.aws-java-api.updatesite/**' + - 'java/com.sap.sailing.targetplatform.base/**' workflow_dispatch: {} jobs: From fd260af1c6142e74e0487c151930c791a00addea Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 14 Jul 2026 03:55:19 +0200 Subject: [PATCH 36/41] bug6269: do the directory change to com.sap.sailing.targetplatform.base "manually" --- .github/workflows/build-sailing-base-p2.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-sailing-base-p2.yml b/.github/workflows/build-sailing-base-p2.yml index 592db328b05..26abbb6ff3d 100644 --- a/.github/workflows/build-sailing-base-p2.yml +++ b/.github/workflows/build-sailing-base-p2.yml @@ -38,7 +38,8 @@ jobs: JAVA17_HOME: ${{env.JAVA_HOME_17_X64}} run: | configuration/install-gwt-from-fork-releases https://github.com/eclipse-sailing-analytics/gwt-forward-serialization-rpc https://github.com/eclipse-sailing-analytics/gwt-maven-plugin-forward-serialization-rpc 2.12.4 . - ./java/com.sap.sailing.targetplatform/scripts/createLocalBaseP2repository.sh 2>&1 | tee build.log + cd com.sap.sailing.targetplatform.base + mvn clean compile 2>&1 | tee build.log echo "BUILD_TIME=$(date -u +"%Y%m%dT%H%M%SZ")" >> "$GITHUB_ENV" - name: Upload build log uses: actions/upload-artifact@v4 From c191323658266a2fb361c46371fc93a7cf432a61 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 14 Jul 2026 03:59:01 +0200 Subject: [PATCH 37/41] bug6269: fixed full folder name for targetplatform.base --- .github/workflows/build-sailing-base-p2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-sailing-base-p2.yml b/.github/workflows/build-sailing-base-p2.yml index 26abbb6ff3d..5de51535285 100644 --- a/.github/workflows/build-sailing-base-p2.yml +++ b/.github/workflows/build-sailing-base-p2.yml @@ -38,7 +38,7 @@ jobs: JAVA17_HOME: ${{env.JAVA_HOME_17_X64}} run: | configuration/install-gwt-from-fork-releases https://github.com/eclipse-sailing-analytics/gwt-forward-serialization-rpc https://github.com/eclipse-sailing-analytics/gwt-maven-plugin-forward-serialization-rpc 2.12.4 . - cd com.sap.sailing.targetplatform.base + cd java/com.sap.sailing.targetplatform.base mvn clean compile 2>&1 | tee build.log echo "BUILD_TIME=$(date -u +"%Y%m%dT%H%M%SZ")" >> "$GITHUB_ENV" - name: Upload build log From a20a9622b3fee8464e1d2dff4ac911395c7e467f Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 14 Jul 2026 04:02:58 +0200 Subject: [PATCH 38/41] bug6269: don't append "Z" to the time stamp of the sailing-* versioned p2 folder --- .github/workflows/build-sailing-base-p2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-sailing-base-p2.yml b/.github/workflows/build-sailing-base-p2.yml index 5de51535285..7362a8ef6ab 100644 --- a/.github/workflows/build-sailing-base-p2.yml +++ b/.github/workflows/build-sailing-base-p2.yml @@ -40,7 +40,7 @@ jobs: configuration/install-gwt-from-fork-releases https://github.com/eclipse-sailing-analytics/gwt-forward-serialization-rpc https://github.com/eclipse-sailing-analytics/gwt-maven-plugin-forward-serialization-rpc 2.12.4 . cd java/com.sap.sailing.targetplatform.base mvn clean compile 2>&1 | tee build.log - echo "BUILD_TIME=$(date -u +"%Y%m%dT%H%M%SZ")" >> "$GITHUB_ENV" + echo "BUILD_TIME=$(date -u +"%Y%m%dT%H%M%S")" >> "$GITHUB_ENV" - name: Upload build log uses: actions/upload-artifact@v4 if: always() From f83a0db2116549553d5aa4fcb1ff5cd96987e5f8 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 14 Jul 2026 10:07:06 +0200 Subject: [PATCH 39/41] bug6269: update target platform sequence number --- .../definitions/race-analysis-p2-remote.target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-remote.target b/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-remote.target index e63517ea172..49f69c487bc 100755 --- a/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-remote.target +++ b/java/com.sap.sailing.targetplatform/definitions/race-analysis-p2-remote.target @@ -1,6 +1,6 @@ - + From 35915f568afc2b2a9a695052a41286277966fd16 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 14 Jul 2026 10:34:31 +0200 Subject: [PATCH 40/41] bug6269: updated activateJettyP2Repo.sh so it doesn't upload anything --- .../scripts/activateJettyP2Repo.sh | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) mode change 100644 => 100755 java/com.sap.sailing.targetplatform/scripts/activateJettyP2Repo.sh diff --git a/java/com.sap.sailing.targetplatform/scripts/activateJettyP2Repo.sh b/java/com.sap.sailing.targetplatform/scripts/activateJettyP2Repo.sh old mode 100644 new mode 100755 index e252358f01e..f8c34a101a3 --- a/java/com.sap.sailing.targetplatform/scripts/activateJettyP2Repo.sh +++ b/java/com.sap.sailing.targetplatform/scripts/activateJettyP2Repo.sh @@ -12,13 +12,6 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" VERSION="${1:-9.4.58.v20250814}" -REPO_DIR="/tmp/jetty-p2-repo-${VERSION}/repository" - -if [ ! -d "${REPO_DIR}" ]; then - echo "ERROR: p2 repository not found at ${REPO_DIR}" - echo "Run ./createJettyP2RepoFromMavenCentral.sh ${VERSION} first." - exit 1 -fi # --------------------------------------------------------------------------- # Determine the old version from the target definition @@ -30,15 +23,7 @@ OLD_VERSION=$(grep ' Date: Tue, 14 Jul 2026 10:46:04 +0200 Subject: [PATCH 41/41] bug6269: updated Wiki documentation, explaining Jetty p2 site update --- .../landscape/typical-development-scenarios.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wiki/info/landscape/typical-development-scenarios.md b/wiki/info/landscape/typical-development-scenarios.md index cfc754a5416..f563761370d 100644 --- a/wiki/info/landscape/typical-development-scenarios.md +++ b/wiki/info/landscape/typical-development-scenarios.md @@ -77,6 +77,20 @@ From the list shown, pick the bundle you need and add it to the '*.target' file, * Select the features of the p2 repository you want to use in the project * Reload the target platform +## Upgrading the Jetty p2 Repository + +We're maintaining a p2 repository with the Jetty version we include in our target platform. As of this writing, we're using version 9.4.58. The p2 repository lives at [https://download.eclipse.org/sailing-analytics/p2/jetty-9.4.58.v20250814/](https://download.eclipse.org/sailing-analytics/p2/jetty-9.4.58.v20250814/). + +We create this p2 repository by running the ``.github/workflow/build-jetty-p2.yml`` workflow (see [here](https://github.com/eclipse-sailing-analytics/sailing-analytics/actions/workflows/build-jetty-p2.yml)). It has a "workflow_dispatch" configuration and requires manual triggering. The Jetty version for which to produce the p2 repository is contained in the workflow file (``echo "VERSION=9.4.58.v20250814" >>"${GITHUB_ENV}"``) and can be updated to the version desired. After running the workflow successfully, the p2 repository with the new version number will show under ``https://download.eclipse.org/sailing-analytics/p2/jetty-${VERSION}``. + +Next, the target platform definition must be adjusted. For this, in your local checked-out Git workspace, run the script ``java/com.sap.sailing.targetplatform/scripts/activateJettyP2Repo.sh``. It will modify the ``feature.xml`` files and your ``*.target`` files so they point to the correct version. Furthermore, it grabs two additional OSGi bundles from Maven Central: ``apache-jsp`` and ``jetty-osgi-boot-jsp``, both used for OSGi/JSP support inside Jetty. Their versions must match that of the Jetty p2 repository exactly but are not part of the Jetty shipment itself. Therefore, they need to go into the "sailing base p2" repository. The ``activateJettyP2Repo.sh`` puts them into the local definition of that "sailing base p2" repository, which then needs to be built and uploaded to the ``download.eclipse.org/sailing-analytics/p2`` area. + +For this, once you commit and push the changes to the ``java/com.sap.sailing.targetplatform.base`` project to the ``main`` branch, the ``build-sailing-base-p2`` workflow will be triggered by these changes and build and upload the new "sailing base p2" repository. With this, your target platform should be up to date again. + +Before pushing all these changes to the ``main`` branch you may also want to consider testing things locally and even with a non-``main`` branch build through Github Actions. For this, use the ``java/com.sap.sailing.targetplatform/scripts/createJettyP2RepoFromMavenCentral.sh`` script and the ``java/com.sap.sailing.targetplatform/scripts/createLocalBaseP2repository.sh`` script to test the p2 repositories in their new versions prior to uploading them. Also, work with the ``local_target_platform`` input parameter of the [release](https://github.com/eclipse-sailing-analytics/sailing-analytics/actions/workflows/release.yml) workflow and set it to ``true`` for a branch build after having made your changes to the target platform definition and "sailing base p2" repository contents on your branch. + +Merge to ``main`` only when such measures have produced "green" builds, and don't forget to inform your co-developers, e.g., through the [Github Discussions](https://github.com/eclipse-sailing-analytics/sailing-analytics/discussions) section of the repository. + ## Working with the Amazon AWS SDK Java API A Java API exists for the Amazon Web Services (AWS) in the form of a modular Software Development Kit (SDK). It can be found, e.g., on Maven Central, under the group ID ``software.amazon.awssdk``. A core module and various service-specific modules exist, e.g., for load balancing, Route 53 DNS handling, or the EC2 base infrastructure. Source JARs are available for the API, too, and the API has further dependencies to other artifacts. None of these artifacts is OSGi-enabled.