File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 2929 server-username : SONATYPE_USERNAME
3030 server-password : SONATYPE_TOKEN
3131 - name : Publish SNAPSHOT to sonatype central with Apache Maven
32- run : mvn --batch-mode deploy
32+ run : mvn --batch-mode deploy -P deploy-to-sonatype
3333 env :
3434 SONATYPE_USERNAME : ${{ secrets.OSSRH_USERNAME }}
3535 SONATYPE_TOKEN : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 4949 <url >https://central.sonatype.com/repository/maven-snapshots/</url >
5050 </repository >
5151 </repositories >
52+ <profiles >
53+ <profile >
54+ <id >deploy-to-sonatype</id >
55+ <build >
56+ <plugins >
57+ <plugin >
58+ <groupId >org.sonatype.central</groupId >
59+ <artifactId >central-publishing-maven-plugin</artifactId >
60+ <version >0.7.0</version >
61+ <extensions >true</extensions >
62+ <configuration >
63+ <centralSnapshotsUrl >https://central.sonatype.com/repository/maven-snapshots</centralSnapshotsUrl >
64+ <publishingServerId >sonatype-central</publishingServerId >
65+ <autoPublish >true</autoPublish >
66+ <waitUntil >published</waitUntil >
67+ </configuration >
68+ </plugin >
69+ </plugins >
70+ </build >
71+ </profile >
72+ </profiles >
5273 <dependencies >
5374 <dependency >
5475 <groupId >commons-lang</groupId >
You can’t perform that action at this time.
0 commit comments