|
80 | 80 | </dependencies>
|
81 | 81 | </dependencyManagement>
|
82 | 82 |
|
83 |
| - <distributionManagement> |
84 |
| - <snapshotRepository> |
85 |
| - <id>ossrh</id> |
86 |
| - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
87 |
| - </snapshotRepository> |
88 |
| - </distributionManagement> |
89 |
| - |
90 | 83 | <build>
|
91 | 84 | <pluginManagement>
|
92 | 85 | <plugins>
|
|
158 | 151 | <build>
|
159 | 152 | <plugins>
|
160 | 153 | <plugin>
|
161 |
| - <groupId>org.sonatype.plugins</groupId> |
162 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
163 |
| - <version>1.7.0</version> |
| 154 | + <!-- https://central.sonatype.org/publish/publish-portal-maven/#publishing --> |
| 155 | + <groupId>org.sonatype.central</groupId> |
| 156 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 157 | + <version>0.7.0</version> |
164 | 158 | <extensions>true</extensions>
|
165 |
| - <!-- |
166 |
| - In multiple module builds using the deploy-at-end feature, the deployment of all components |
167 |
| - is performed in the last module based on the reactor order. If this property is set to true |
168 |
| - in the last module, all staging deployment for all modules will be skipped. |
169 |
| - so, we'll config nexus deploy after every module's `deploy` phase |
170 |
| - see: https://github.com/sonatype/nexus-maven-plugins/tree/master/staging/maven-plugin#configuring-the-plugin |
171 |
| - --> |
172 | 159 | <configuration>
|
173 |
| - <serverId>ossrh</serverId> |
174 |
| - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
175 |
| - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
176 |
| - <!-- |
177 |
| - If you are deploying to Maven Central, it is the Nexus Staging Plugin that is doing the deployment |
178 |
| - instead of the `deploy` plugin, so the configuration of the `deploy` plugin has no effect. |
179 |
| - To make the Nexus deploy plugin skip, set skipNexusStagingDeployMojo in its configuration to true. |
180 |
| - see: https://stackoverflow.com/questions/59552549/preventing-maven-modules-from-being-deployed |
181 |
| - --> |
182 |
| - <skipNexusStagingDeployMojo>${maven.deploy.skip}</skipNexusStagingDeployMojo> |
| 160 | + <publishingServerId>central</publishingServerId> |
| 161 | + <autoPublish>true</autoPublish> |
183 | 162 | </configuration>
|
184 | 163 | </plugin>
|
185 | 164 | </plugins>
|
|
0 commit comments