Skip to content

Set up Maven to allow authenticated dependencies #19

Set up Maven to allow authenticated dependencies

Set up Maven to allow authenticated dependencies #19

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 (JDK 17)
# Only 'this' branch will execute this action when pushed to or a PR is created, so the 'on' is not strictly required but are added as
# an extra layer of protection to ensure the correct Java version is run
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
cache: 'maven'
- name: Set up Maven
uses: s4u/maven-settings-action@v2.8.0
with:
servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
- name: Check settings
run: cat ~/.m2/settings.xml
- name: Build with Maven
run: mvn -B verify checkstyle:checkstyle --file pom.xml
- name: Upload jar artifact
uses: actions/upload-artifact@v2
with:
name: ukf-mda-snapshot
path: target/ukf-mda*.jar