|
59 | 59 |
|
60 | 60 | <!-- Plugins not managed by the JBoss parent POM: -->
|
61 | 61 | <maven-wrapper-plugin.version>3.3.2</maven-wrapper-plugin.version>
|
62 |
| - <nexus-staging.plugin.version>1.7.0</nexus-staging.plugin.version> |
63 | 62 | <flatten-maven-plugin.version>1.7.0</flatten-maven-plugin.version>
|
64 | 63 |
|
65 | 64 | <!--
|
66 | 65 | We don't want to publish or sign any modules by default.
|
67 | 66 | Specific modules will override the setting at their own level.
|
68 | 67 | -->
|
69 | 68 | <deploy.skip>true</deploy.skip>
|
70 |
| - <maven-deploy-plugin.skip>true</maven-deploy-plugin.skip> |
71 | 69 |
|
72 | 70 | <!-- Repository Deployment URLs -->
|
73 |
| - <ossrh.releases.repo.id>ossrh</ossrh.releases.repo.id> |
74 |
| - <ossrh.releases.repo.name>Sonatype OSSRH Releases</ossrh.releases.repo.name> |
75 |
| - <ossrh.releases.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2</ossrh.releases.repo.url> |
76 |
| - <ossrh.releases.repo.baseUrl>https://oss.sonatype.org</ossrh.releases.repo.baseUrl> |
| 71 | + |
| 72 | + <!-- We always publish to a local directory, JReleaser is supposed to take care of publishing to Nexus: --> |
| 73 | + <local.staging.releases.repo.id>staging-deploy</local.staging.releases.repo.id> |
| 74 | + <local.staging.releases.repo.name>Local Staging Directory Releases Repository</local.staging.releases.repo.name> |
| 75 | + <local.staging.releases.repo.url>file:${maven.multiModuleProjectDirectory}/target/staging-deploy/maven</local.staging.releases.repo.url> |
77 | 76 | <ossrh.snapshots.repo.id>ossrh</ossrh.snapshots.repo.id>
|
78 | 77 | <ossrh.snapshots.repo.name>Sonatype OSSRH Snapshots</ossrh.snapshots.repo.name>
|
79 | 78 | <ossrh.snapshots.repo.url>https://oss.sonatype.org/content/repositories/snapshots</ossrh.snapshots.repo.url>
|
|
182 | 181 | </dependencyManagement>
|
183 | 182 |
|
184 | 183 | <distributionManagement>
|
185 |
| - <repository> |
186 |
| - <id>${ossrh.releases.repo.id}</id> |
187 |
| - <name>${ossrh.releases.repo.name}</name> |
188 |
| - <url>${ossrh.releases.repo.url}</url> |
189 |
| - </repository> |
190 |
| - <snapshotRepository> |
191 |
| - <id>${ossrh.snapshots.repo.id}</id> |
192 |
| - <name>${ossrh.snapshots.repo.name}</name> |
193 |
| - <url>${ossrh.snapshots.repo.url}</url> |
194 |
| - </snapshotRepository> |
| 184 | + <repository> |
| 185 | + <id>${local.staging.releases.repo.id}</id> |
| 186 | + <name>${local.staging.releases.repo.name}</name> |
| 187 | + <url>${local.staging.releases.repo.url}</url> |
| 188 | + </repository> |
| 189 | + <snapshotRepository> |
| 190 | + <id>${ossrh.snapshots.repo.id}</id> |
| 191 | + <name>${ossrh.snapshots.repo.name}</name> |
| 192 | + <url>${ossrh.snapshots.repo.url}</url> |
| 193 | + </snapshotRepository> |
195 | 194 | </distributionManagement>
|
196 | 195 |
|
197 | 196 | <build>
|
|
206 | 205 | <distributionType>bin</distributionType>
|
207 | 206 | </configuration>
|
208 | 207 | </plugin>
|
209 |
| - <!-- Published artifacts have to be signed: --> |
210 |
| - <plugin> |
211 |
| - <groupId>org.apache.maven.plugins</groupId> |
212 |
| - <artifactId>maven-gpg-plugin</artifactId> |
213 |
| - <executions> |
214 |
| - <execution> |
215 |
| - <id>sign-artifacts</id> |
216 |
| - <phase>verify</phase> |
217 |
| - <goals> |
218 |
| - <goal>sign</goal> |
219 |
| - </goals> |
220 |
| - <configuration> |
221 |
| - <skip>${deploy.skip}</skip> |
222 |
| - <homedir>${env.RELEASE_GPG_HOMEDIR}</homedir> |
223 |
| - </configuration> |
224 |
| - </execution> |
225 |
| - </executions> |
226 |
| - </plugin> |
227 |
| - <plugin> |
228 |
| - <groupId>org.sonatype.plugins</groupId> |
229 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
230 |
| - <version>${nexus-staging.plugin.version}</version> |
231 |
| - <extensions>false</extensions><!-- This is essential: do not put true here --> |
232 |
| - <configuration> |
233 |
| - <skipNexusStagingDeployMojo>${deploy.skip}</skipNexusStagingDeployMojo> |
234 |
| - <serverId>${ossrh.releases.repo.id}</serverId> |
235 |
| - <!-- The following, by default, is only used for actual releases, not for snapshot deployments --> |
236 |
| - <nexusUrl>${ossrh.releases.repo.baseUrl}</nexusUrl> |
237 |
| - <!-- oss.sonatype.org has been very slow when closing repositories lately; |
238 |
| - let's raise the timeout until we switch to s01.sonatype.org --> |
239 |
| - <stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes> |
240 |
| - </configuration> |
241 |
| - </plugin> |
242 | 208 | <plugin>
|
243 | 209 | <groupId>org.codehaus.mojo</groupId>
|
244 | 210 | <artifactId>flatten-maven-plugin</artifactId>
|
|
269 | 235 | <groupId>org.apache.maven.plugins</groupId>
|
270 | 236 | <artifactId>maven-deploy-plugin</artifactId>
|
271 | 237 | <configuration>
|
272 |
| - <skip>${maven-deploy-plugin.skip}</skip> |
| 238 | + <skip>${deploy.skip}</skip> |
273 | 239 | </configuration>
|
274 | 240 | </plugin>
|
275 |
| - <!-- |
276 |
| - Configure the nexus-staging-maven-plugin explicitly (without <extension>true</extension>) |
277 |
| - in order to work around a problem in the "reports" module (see that module's POM for more info). |
278 |
| - --> |
279 |
| - <plugin> |
280 |
| - <groupId>org.sonatype.plugins</groupId> |
281 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
282 |
| - <executions> |
283 |
| - <execution> |
284 |
| - <id>default-deploy</id> |
285 |
| - <phase>deploy</phase> |
286 |
| - <goals> |
287 |
| - <!-- |
288 |
| - This will only put artifacts in a staging directory. |
289 |
| - See the "reports" module for actual deployment, at the end of the build. |
290 |
| - --> |
291 |
| - <goal>deploy</goal> |
292 |
| - </goals> |
293 |
| - </execution> |
294 |
| - </executions> |
295 |
| - </plugin> |
296 | 241 | <plugin>
|
297 | 242 | <groupId>org.codehaus.mojo</groupId>
|
298 | 243 | <artifactId>flatten-maven-plugin</artifactId>
|
|
323 | 268 | </plugins>
|
324 | 269 | </build>
|
325 | 270 |
|
326 |
| - <profiles> |
327 |
| - <profile> |
328 |
| - <id>release</id> |
329 |
| - <activation> |
330 |
| - <property> |
331 |
| - <name>performRelease</name> |
332 |
| - <value>true</value> |
333 |
| - </property> |
334 |
| - </activation> |
335 |
| - <build> |
336 |
| - <plugins> |
337 |
| - <plugin> |
338 |
| - <groupId>org.apache.maven.plugins</groupId> |
339 |
| - <artifactId>maven-gpg-plugin</artifactId> |
340 |
| - </plugin> |
341 |
| - </plugins> |
342 |
| - </build> |
343 |
| - </profile> |
344 |
| - |
345 |
| - <!-- |
346 |
| - WARNING: this MUST be the very last profile, |
347 |
| - so that the "report" module is the very last module, |
348 |
| - in particular when deploying artifacts to a Nexus repository. |
349 |
| - See the "build/reports" module POM for more information. |
350 |
| - --> |
351 |
| - <profile> |
352 |
| - <id>build-reports-as-last-module</id> |
353 |
| - <activation> |
354 |
| - <property> |
355 |
| - <name>!some.property.that.will.never.exist</name> |
356 |
| - </property> |
357 |
| - </activation> |
358 |
| - <modules> |
359 |
| - <module>reports</module> |
360 |
| - </modules> |
361 |
| - </profile> |
362 |
| - |
363 |
| - <!-- DO NOT ADD ANY PROFILE AFTER THIS: see above --> |
364 |
| - </profiles> |
365 |
| - |
366 | 271 | </project>
|
0 commit comments