Skip to content

Fix paths to resource files when using the jar #114

Fix paths to resource files when using the jar

Fix paths to resource files when using the jar #114

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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches:
- '**'
pull_request:
branches:
- main
- dev
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set Up
run: ./mvnw install:install-file -Dfile=${{ github.workspace }}/libs/JavaFXSmartGraph/JavaFXSmartGraph/0.1/JavaFXSmartGraph-0.1.jar -DgroupId=JavaFXSmartGraph -DartifactId=JavaFXSmartGraph -Dversion=0.1 -Dpackaging=jar
- run: ./mvnw install:install-file -Dfile=${{ github.workspace }}/libs/PlantUML/PlantUML/1.2023.7/PlantUML-1.2023.7.jar -DgroupId=PlantUML -DartifactId=PlantUML -Dversion=1.2023.7 -Dpackaging=jar
- name: Build with Maven
run: ./mvnw -B package --file pom.xml --update-snapshots verify -DskipTests
- name: Test
run: ./mvnw --batch-mode -Dmaven.test.failure.ignore=true test
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: target/surefire-reports/*.xml
reporter: java-junit
fail-on-error: true
- name: Upload artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: surefire-reports
path: /home/runner/work