|
6 | 6 |
|
7 | 7 | <groupId>org.opencb.commons</groupId> |
8 | 8 | <artifactId>commons</artifactId> |
9 | | - <version>5.7.0-SNAPSHOT</version> |
| 9 | + <version>5.6.0-SNAPSHOT</version> |
10 | 10 | <packaging>pom</packaging> |
11 | 11 |
|
12 | 12 | <name>OpenCB commons project</name> |
|
303 | 303 | <profile> |
304 | 304 | <id>deploy-maven</id> |
305 | 305 | <distributionManagement> |
306 | | - <!-- Releases → compatibilidad OSSRH Staging API --> |
| 306 | + <!-- Releases repository using the Sonatype OSSRH Staging API for staging and deployment --> |
307 | 307 | <repository> |
308 | 308 | <id>ossrh</id> |
309 | 309 | <name>OSSRH Staging API Releases</name> |
310 | 310 | <url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url> |
311 | 311 | </repository> |
312 | | - <!-- Snapshots → Portal Central --> |
| 312 | + |
| 313 | + <!-- Snapshots repository pointing to Maven Central’s snapshot feed for ongoing development versions --> |
313 | 314 | <snapshotRepository> |
314 | 315 | <id>ossrh</id> |
315 | 316 | <name>Central Portal Snapshots</name> |
|
318 | 319 | </distributionManagement> |
319 | 320 | <build> |
320 | 321 | <plugins> |
| 322 | + <!-- Central Publishing Plugin: handles both snapshots and releases via the Sonatype Central API --> |
321 | 323 | <plugin> |
322 | 324 | <groupId>org.sonatype.central</groupId> |
323 | 325 | <artifactId>central-publishing-maven-plugin</artifactId> |
324 | 326 | <version>0.8.0</version> |
| 327 | + <!-- extensions=true allows this plugin to hook into the build lifecycle --> |
325 | 328 | <extensions>true</extensions> |
326 | 329 | <configuration> |
| 330 | + <!-- ID of the <server> in your settings.xml containing your Sonatype credentials --> |
327 | 331 | <publishingServerId>ossrh</publishingServerId> |
| 332 | + <!-- autoPublish=true will automatically close and release the staging repository after deploy --> |
328 | 333 | <autoPublish>true</autoPublish> |
| 334 | + <!-- waitUntil=published makes the build wait until the artifacts are fully available in Central --> |
329 | 335 | <waitUntil>published</waitUntil> |
| 336 | + <!-- ignorePublishedComponents skips already-published modules in multimodule builds --> |
330 | 337 | <ignorePublishedComponents>true</ignorePublishedComponents> |
331 | 338 | </configuration> |
332 | 339 | </plugin> |
| 340 | + <!-- Source Plugin: generates and attaches a -sources.jar containing all your project’s source files --> |
| 341 | + <plugin> |
| 342 | + <groupId>org.apache.maven.plugins</groupId> |
| 343 | + <artifactId>maven-source-plugin</artifactId> |
| 344 | + <version>3.2.1</version> |
| 345 | + <executions> |
| 346 | + <execution> |
| 347 | + <id>attach-sources</id> |
| 348 | + <goals> |
| 349 | + <!-- jar-no-fork: create the sources jar without running the default lifecycle again --> |
| 350 | + <goal>jar-no-fork</goal> |
| 351 | + </goals> |
| 352 | + </execution> |
| 353 | + </executions> |
| 354 | + </plugin> |
| 355 | + |
| 356 | + <!-- Javadoc Plugin: generates and attaches a -javadoc.jar containing your project’s API documentation --> |
| 357 | + <plugin> |
| 358 | + <groupId>org.apache.maven.plugins</groupId> |
| 359 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 360 | + <version>3.3.2</version> |
| 361 | + <executions> |
| 362 | + <execution> |
| 363 | + <id>attach-javadocs</id> |
| 364 | + <goals> |
| 365 | + <!-- jar: package the generated Javadocs into a jar file --> |
| 366 | + <goal>jar</goal> |
| 367 | + </goals> |
| 368 | + </execution> |
| 369 | + </executions> |
| 370 | + </plugin> |
| 371 | + |
| 372 | + <!-- GPG Plugin: signs all deployable artifacts (.jar, .pom, sources, javadoc) with your GPG key --> |
| 373 | + <plugin> |
| 374 | + <groupId>org.apache.maven.plugins</groupId> |
| 375 | + <artifactId>maven-gpg-plugin</artifactId> |
| 376 | + <version>1.6</version> |
| 377 | + <executions> |
| 378 | + <execution> |
| 379 | + <id>sign-artifacts</id> |
| 380 | + <!-- bind signing to the verify phase, so signatures are created before deploy --> |
| 381 | + <phase>verify</phase> |
| 382 | + <goals> |
| 383 | + <goal>sign</goal> |
| 384 | + </goals> |
| 385 | + <configuration> |
| 386 | + <!-- Use loopback pinentry to allow unattended signing in CI --> |
| 387 | + <gpgArguments> |
| 388 | + <arg>--pinentry-mode</arg> |
| 389 | + <arg>loopback</arg> |
| 390 | + </gpgArguments> |
| 391 | + </configuration> |
| 392 | + </execution> |
| 393 | + </executions> |
| 394 | + </plugin> |
333 | 395 | </plugins> |
334 | 396 | </build> |
335 | 397 | </profile> |
|
0 commit comments