File tree Expand file tree Collapse file tree 4 files changed +21
-41
lines changed
Expand file tree Collapse file tree 4 files changed +21
-41
lines changed Original file line number Diff line number Diff line change 2020 - name : Deploy to JavaWebStack Repository
2121 run : mvn deploy -B -DbuildVersion=${{ github.event.release.tag_name }} -s build/settings.xml -Dmaven.test.skip=true
2222 env :
23- DEPLOYMENT_USERNAME : ${{ secrets.DEPLOYMENT_USERNAME }}
24- DEPLOYMENT_PASSWORD : ${{ secrets.DEPLOYMENT_PASSWORD }}
23+ CENTRAL_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
24+ CENTRAL_PASSWORD : ${{ secrets.CENTRAL_PASSWORD }}
2525 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
26- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
Original file line number Diff line number Diff line change 2121 - name : Deploy to JavaWebStack Repository
2222 run : mvn deploy -B -s build/settings.xml -Dmaven.test.skip=true
2323 env :
24- DEPLOYMENT_USERNAME : ${{ secrets.DEPLOYMENT_USERNAME }}
25- DEPLOYMENT_PASSWORD : ${{ secrets.DEPLOYMENT_PASSWORD }}
24+ CENTRAL_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
25+ CENTRAL_PASSWORD : ${{ secrets.CENTRAL_PASSWORD }}
2626 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
27- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
Original file line number Diff line number Diff line change 55>
66 <servers >
77 <server >
8- <id >javawebstack-snapshots</id >
9- <username >${env.DEPLOYMENT_USERNAME}</username >
10- <password >${env.DEPLOYMENT_PASSWORD}</password >
11- </server >
12- <server >
13- <id >javawebstack-releases</id >
14- <username >${env.DEPLOYMENT_USERNAME}</username >
15- <password >${env.DEPLOYMENT_PASSWORD}</password >
16- </server >
17- <server >
18- <id >ossrh</id >
19- <username >JavaWebStack</username >
20- <password >${env.OSSRH_PASSWORD}</password >
8+ <id >central</id >
9+ <username >${env.CENTRAL_USERNAME}</username >
10+ <password >${env.CENTRAL_PASSWORD}</password >
2111 </server >
2212 <server >
2313 <id >gpg</id >
Original file line number Diff line number Diff line change 4242
4343 <repositories >
4444 <repository >
45- <id >ossrh </id >
46- <url >https://s01.oss. sonatype.org/content/repositories/ snapshots</url >
45+ <id >central-snapshots </id >
46+ <url >https://central. sonatype.com/repository/maven- snapshots/ </url >
4747 </repository >
4848 </repositories >
4949
7070
7171 <build >
7272 <plugins >
73+ <plugin >
74+ <groupId >org.sonatype.central</groupId >
75+ <artifactId >central-publishing-maven-plugin</artifactId >
76+ <version >0.9.0</version >
77+ <extensions >true</extensions >
78+ <configuration >
79+ <publishingServerId >central</publishingServerId >
80+ </configuration >
81+ </plugin >
7382 <plugin >
7483 <groupId >org.apache.maven.plugins</groupId >
7584 <artifactId >maven-surefire-plugin</artifactId >
7685 <version >2.22.1</version >
7786 </plugin >
78- <plugin >
79- <artifactId >maven-deploy-plugin</artifactId >
80- <version >3.0.0-M1</version >
81- <executions >
82- <execution >
83- <id >default-deploy</id >
84- <phase >deploy</phase >
85- <goals >
86- <goal >deploy</goal >
87- </goals >
88- </execution >
89- </executions >
90- </plugin >
9187 <plugin >
9288 <groupId >org.apache.maven.plugins</groupId >
9389 <artifactId >maven-source-plugin</artifactId >
126122 <goal >sign</goal >
127123 </goals >
128124 <configuration >
129- <keyname >A313520526A8DFE1C2A30399C35A3D43C557B112 </keyname >
125+ <keyname >EC9CCFF8901F0AA22191DCEDD619376246C066D0 </keyname >
130126 <passphraseServerId >gpg</passphraseServerId >
131127 <gpgArguments >
132128 <arg >--no-tty</arg >
142138
143139 <distributionManagement >
144140 <snapshotRepository >
145- <id >ossrh </id >
146- <url >https://s01.oss. sonatype.org/content/repositories/ snapshots</url >
141+ <id >central </id >
142+ <url >https://central. sonatype.com/repository/maven- snapshots/ </url >
147143 </snapshotRepository >
148- <repository >
149- <id >ossrh</id >
150- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
151- </repository >
152144 </distributionManagement >
153145
154146</project >
You can’t perform that action at this time.
0 commit comments