|
461 | 461 | <autoVersionSubmodules>true</autoVersionSubmodules> |
462 | 462 | <localCheckout>true</localCheckout> |
463 | 463 | <pushChanges>false</pushChanges> |
464 | | - <releaseProfiles>release-sign-artifacts,sonatype-deployment</releaseProfiles> |
| 464 | + <releaseProfiles>release-sign-artifacts,sonatype-central-portal-deployment</releaseProfiles> |
465 | 465 | </configuration> |
466 | 466 | </plugin> |
467 | 467 | <plugin> |
|
859 | 859 | </build> |
860 | 860 | </profile> |
861 | 861 | <!-- |
862 | | - The release-sign-artifacts and sonatype deployment profiles only need activated when pushing snapshots or |
863 | | - releases to maven central. When enabled, additional artifacts will be generated for javadoc and source as well |
864 | | - as GPG signatures for each artifact. This profiles assume that the properties for the gpg plugin |
865 | | - (such as gpg.keyname and gpg.passphrase are either defined in a settings.xml file or similar facility. |
| 862 | + The release-sign-artifacts and sonatype-central-portal-deployment profiles only need activated when pushing |
| 863 | + snapshots or releases to maven central. When enabled, additional artifacts will be generated for javadoc and |
| 864 | + source as well as GPG signatures for each artifact. These profiles assume that the properties for the gpg |
| 865 | + plugin (such as gpg.keyname and gpg.passphrase) are either defined in a settings.xml file or similar facility. |
866 | 866 | --> |
867 | 867 | <profile> |
868 | 868 | <id>release-sign-artifacts</id> |
|
909 | 909 | </build> |
910 | 910 | </profile> |
911 | 911 | <profile> |
912 | | - <id>sonatype-deployment</id> |
913 | | - <distributionManagement> |
914 | | - <snapshotRepository> |
915 | | - <id>ossrh</id> |
916 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
917 | | - </snapshotRepository> |
918 | | - <repository> |
919 | | - <id>ossrh</id> |
920 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
921 | | - </repository> |
922 | | - </distributionManagement> |
| 912 | + <id>sonatype-central-portal-deployment</id> |
| 913 | + <properties> |
| 914 | + <central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version> |
| 915 | + </properties> |
| 916 | + <build> |
| 917 | + <pluginManagement> |
| 918 | + <plugins> |
| 919 | + <plugin> |
| 920 | + <groupId>org.sonatype.central</groupId> |
| 921 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 922 | + <version>${central-publishing-maven-plugin.version}</version> |
| 923 | + <extensions>true</extensions> |
| 924 | + <configuration> |
| 925 | + <!-- publishing server id refers to <id> element in <server> section of settings.xml --> |
| 926 | + <publishingServerId>sonatype-central-portal</publishingServerId> |
| 927 | + </configuration> |
| 928 | + </plugin> |
| 929 | + </plugins> |
| 930 | + </pluginManagement> |
| 931 | + <plugins> |
| 932 | + <plugin> |
| 933 | + <groupId>org.sonatype.central</groupId> |
| 934 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 935 | + </plugin> |
| 936 | + </plugins> |
| 937 | + </build> |
923 | 938 | </profile> |
924 | 939 |
|
925 | 940 | <profile> |
|
0 commit comments