Skip to content

fix: upgrade org.apache.maven:maven-artifact from 3.9.10 to 3.9.11 #919

fix: upgrade org.apache.maven:maven-artifact from 3.9.10 to 3.9.11

fix: upgrade org.apache.maven:maven-artifact from 3.9.10 to 3.9.11 #919

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B package -Ppedantic --file pom.xml
#
# Static analysis with SonarQube
#
sonarcloud:
name: SonarCloud
needs: build
runs-on: ubuntu-latest
# Only run SonarCloud on the main branch
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'adopt'
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: >
mvn -B verify
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.projectKey=xzel23_odftoolkit
-Dsonar.organization=xzel23
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco-ut/jacoco.xml
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar