CI: Install multiple JDK versions, update to Maven 3.9.5 43/142443/1
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Fri, 14 Nov 2025 12:47:40 +0000 (12:47 +0000)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Fri, 14 Nov 2025 12:47:40 +0000 (12:47 +0000)
Seems multiple JDK versions are needed within the ccsdk/ project hierarchy.

The last CBOM workflow run in ccsdk-sli/ failed with the error below:

Error:  Failed to execute goal org.opendaylight.odlparent:copy-files-plugin:14.0.8:copy-files (default) on project utils-provider: The plugin org.opendaylight.odlparent:copy-files-plugin:14.0.8 requires Maven version 3.9.5

This would suggest a more recent Maven release is required.

Change-Id: I5324ae6262f1241a5fe3c119ea5aec5a48ae77f7
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
.github/workflows/gerrit-merge-cbom.yaml

index 853e97d..9cc400a 100644 (file)
@@ -143,7 +143,7 @@ jobs:
             echo "Error: .gitreview file not found"
             exit 1
           fi
-          
+
           cat > global-settings.xml << EOF
           <settings>
             <servers>
@@ -216,9 +216,11 @@ jobs:
         # yamllint disable-line rule:line-length
         uses: lfreleng-actions/maven-build-action@main
         with:
-          jdk-version: '21'
+          jdk-version: |
+            '17'
+            '21'
           distribution: 'temurin'
-          mvn-version: '3.8.2'
+          mvn-version: '3.9.5'
           mvn-phases: 'clean package'
           mvn-params: '-DskipTests -Djib.skip=true'
           # yamllint disable-line rule:line-length
@@ -269,4 +271,4 @@ jobs:
           known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
           gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
           gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
-          vote-type: ${{ env.WORKFLOW_CONCLUSION }}
\ No newline at end of file
+          vote-type: ${{ env.WORKFLOW_CONCLUSION }}