File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 - name : Publish to Apache Maven Central
2727 run : mvn deploy -Pci-cd
2828 env :
29- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
30- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
31- MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
29+ NEXUS_USERNAME : ${{ secrets.OSSRH_USERNAME }}
30+ NEXUS_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
31+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
32+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
3233 # MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 3232 <tag >v2.0.0-beta1</tag >
3333 </scm >
3434
35- <distributionManagement >
36- <snapshotRepository >
37- <id >ossrh</id >
38- <url >https://s01.oss.sonatype.org/content/repositories/snapshots</url >
39- </snapshotRepository >
40- <repository >
41- <id >ossrh</id >
42- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url >
43- </repository >
44- </distributionManagement >
45-
4635
4736 <developers >
4837 <developer >
9887 <tagNameFormat >v@{project.version}</tagNameFormat >
9988 </configuration >
10089 </plugin >
90+ <plugin >
91+ <groupId >org.sonatype.central</groupId >
92+ <artifactId >central-publishing-maven-plugin</artifactId >
93+ <version >0.8.0</version >
94+ <extensions >true</extensions >
95+ <configuration >
96+ <publishingServerId >central</publishingServerId >
97+ </configuration >
98+ </plugin >
10199 </plugins >
102100 </build >
103101
You can’t perform that action at this time.
0 commit comments