From 040f71497af27d9c1b94fad273eea276003261d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20K=C3=B6rtge?= Date: Tue, 17 Sep 2024 10:45:21 +0200 Subject: [PATCH] add mvn settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicklas Körtge --- .github/workflows/maven.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d92ddefbd..5f6ed9d0d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -41,15 +41,20 @@ jobs: java-version: '17' distribution: 'temurin' cache: maven - - name: maven-settings-action - uses: s4u/maven-settings-action@v3.0.0 - with: - servers: | - [{ - "id": "github", - "username": "${{ github.actor }}", - "password": "${{ secrets.GITHUB_TOKEN }}" - }] + - name: Create Maven settings.xml + run: | + echo " + + + github + ${{ github.actor }} + ${{ secrets.GITHUB_TOKEN }} + + + " > ~/.m2/settings.xml - name: Build with Maven run: mvn clean package env: