Fixes for mvn-settings.xml #2

This commit is contained in:
Marko Frankovic 2025-02-27 12:25:08 +01:00
parent 9fc6b68bae
commit f99d8fb3dd
3 changed files with 13 additions and 2 deletions

View File

@ -33,6 +33,10 @@ jobs:
java-version: '8' java-version: '8'
distribution: 'corretto' distribution: 'corretto'
cache: maven cache: maven
overwrite-settings: false
run: echo -e "$MVN_SETTINGS_XML" > ~/.m2/settings.xml
env:
MVN_SETTINGS_XML: ${{ secrets.MVN_SETTINGS_XML }}
- name: Set up AWS Cli - name: Set up AWS Cli
run: | run: |
@ -47,7 +51,6 @@ jobs:
- name: Build with Maven - name: Build with Maven
run: | run: |
echo -e "${{ secrets.MVN_SETTINGS_XML }}" > mvn-settings.xml
mvn -B clean package --file pom.xml -s mvn-settings.xml mvn -B clean package --file pom.xml -s mvn-settings.xml
- name: Deploy artifacts - name: Deploy artifacts

View File

@ -42,6 +42,10 @@ jobs:
java-version: '8' java-version: '8'
distribution: 'corretto' distribution: 'corretto'
cache: maven cache: maven
overwrite-settings: false
run: echo -e "$MVN_SETTINGS_XML" > ~/.m2/settings.xml
env:
MVN_SETTINGS_XML: ${{ secrets.MVN_SETTINGS_XML }}
- name: Set up AWS Cli - name: Set up AWS Cli
run: | run: |

View File

@ -33,7 +33,11 @@ jobs:
with: with:
java-version: '8' java-version: '8'
distribution: 'corretto' distribution: 'corretto'
cache: maven
overwrite-settings: false
run: echo -e "$MVN_SETTINGS_XML" > ~/.m2/settings.xml
env:
MVN_SETTINGS_XML: ${{ secrets.MVN_SETTINGS_XML }}
- name: Set up AWS Cli - name: Set up AWS Cli
run: | run: |