Skip to content

Commit f0d3ab6

Browse files
committed
corrected hopefully maven snapshot deployment
1 parent c73ea37 commit f0d3ab6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
java: [8, 11]
18+
java: [8]
1919
name: Java ${{ matrix.java }} building ...
2020

2121
steps:
@@ -26,5 +26,11 @@ jobs:
2626
java-version: ${{ matrix.java }}
2727
distribution: 'temurin'
2828
cache: maven
29+
server-id: sonatype-nexus-snapshots
30+
server-username: MAVEN_USERNAME
31+
server-password: MAVEN_PASSWORD
2932
- name: Build with Maven
3033
run: mvn -B package --file pom.xml -DdisableXmlReport=true -Djacoco.skip=true -Dpmd.skip=true
34+
env:
35+
MAVEN_USERNAME: ${{ secrets.OSSRHUSERNAME }}
36+
MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }}

0 commit comments

Comments
 (0)