File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+ # This workflow uses actions that are not certified by GitHub.
5+ # They are provided by a third-party and are governed by
6+ # separate terms of service, privacy policy, and support
7+ # documentation.
8+
9+ name : Publish Snapshot
10+
11+ on :
12+ push :
13+ branches : ["main"]
14+
15+ jobs :
16+ build :
17+ name : Publish Snapshot with Java ${{ matrix.jdk }} ${{ matrix.os }}
18+ runs-on : ${{ matrix.os }}
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ jdk : ['8']
23+ os : [ubuntu-latest]
24+
25+ steps :
26+ - uses : actions/checkout@v4
27+ - name : Set up JDK ${{ matrix.jdk }}
28+ uses : actions/setup-java@v4
29+ with :
30+ java-version : ${{ matrix.jdk }}
31+ distribution : ' temurin'
32+ cache : maven
33+ server-id : apache.snapshots.https
34+ server-username : NEXUS_USER
35+ server-password : NEXUS_PW
36+ - name : Deploy
37+ run : mvn -B deploy -DskipTests
38+ env :
39+ NEXUS_USER : ${{ secrets.NEXUS_USER }}
40+ NEXUS_PW : ${{ secrets.NEXUS_PW }}
Original file line number Diff line number Diff line change 207207 </repositories >
208208
209209 <distributionManagement >
210- <site >
211- <id >${project.artifactId} -site </id >
212- <url >${project.baseUri} </url >
213- </site >
210+ <snapshotRepository >
211+ <id >apache.snapshots.https </id >
212+ <url >https://repository.apache.org/content/repositories/snapshots </url >
213+ </snapshotRepository >
214214 </distributionManagement >
215215
216216</project >
You can’t perform that action at this time.
0 commit comments