|
40 | 40 | <swagger-annotations.version>1.6.5</swagger-annotations.version> |
41 | 41 | <javax.servlet-api.version>3.1.0</javax.servlet-api.version> |
42 | 42 | <poi.version>4.1.2</poi.version> |
43 | | - <mongodb.version>4.11.4</mongodb.version> |
| 43 | + <mongodb.version>4.11.5</mongodb.version> |
| 44 | + |
44 | 45 | <junit.version>4.12</junit.version> |
45 | 46 | <commons-codec.version>1.13</commons-codec.version> |
46 | 47 | <jakarta.xml.bind-api.version>2.3.3</jakarta.xml.bind-api.version> |
|
108 | 109 | <repositories> |
109 | 110 | <repository> |
110 | 111 | <id>ossrh</id> |
111 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 112 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
112 | 113 | <snapshots> |
113 | 114 | <enabled>true</enabled> |
114 | 115 | <updatePolicy>daily</updatePolicy> |
|
650 | 651 | <profile> |
651 | 652 | <id>deploy-maven</id> |
652 | 653 | <distributionManagement> |
| 654 | + <!-- Releases repository using the Sonatype OSSRH Staging API for staging and deployment --> |
653 | 655 | <repository> |
654 | 656 | <id>ossrh</id> |
655 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 657 | + <name>OSSRH Staging API Releases</name> |
| 658 | + <url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url> |
656 | 659 | </repository> |
| 660 | + |
| 661 | + <!-- Snapshots repository pointing to Maven Central’s snapshot feed for ongoing development versions --> |
657 | 662 | <snapshotRepository> |
658 | 663 | <id>ossrh</id> |
659 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 664 | + <name>Central Portal Snapshots</name> |
| 665 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
660 | 666 | </snapshotRepository> |
661 | 667 | </distributionManagement> |
662 | 668 | <build> |
663 | 669 | <plugins> |
| 670 | + <!-- Central Publishing Plugin: handles both snapshots and releases via the Sonatype Central API --> |
| 671 | + <plugin> |
| 672 | + <groupId>org.sonatype.central</groupId> |
| 673 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 674 | + <version>0.8.0</version> |
| 675 | + <!-- extensions=true allows this plugin to hook into the build lifecycle --> |
| 676 | + <extensions>true</extensions> |
| 677 | + <configuration> |
| 678 | + <!-- ID of the <server> in your settings.xml containing your Sonatype credentials --> |
| 679 | + <publishingServerId>ossrh</publishingServerId> |
| 680 | + <!-- autoPublish=true will automatically close and release the staging repository after deploy --> |
| 681 | + <autoPublish>true</autoPublish> |
| 682 | + <!-- waitUntil=published makes the build wait until the artifacts are fully available in Central --> |
| 683 | + <waitUntil>published</waitUntil> |
| 684 | + <!-- ignorePublishedComponents skips already-published modules in multimodule builds --> |
| 685 | + <ignorePublishedComponents>true</ignorePublishedComponents> |
| 686 | + </configuration> |
| 687 | + </plugin> |
| 688 | + <!-- Source Plugin: generates and attaches a -sources.jar containing all your project’s source files --> |
664 | 689 | <plugin> |
665 | 690 | <groupId>org.apache.maven.plugins</groupId> |
666 | 691 | <artifactId>maven-source-plugin</artifactId> |
667 | | - <version>3.2.0</version> |
| 692 | + <version>3.2.1</version> |
668 | 693 | <executions> |
669 | 694 | <execution> |
670 | 695 | <id>attach-sources</id> |
671 | 696 | <goals> |
| 697 | + <!-- jar-no-fork: create the sources jar without running the default lifecycle again --> |
672 | 698 | <goal>jar-no-fork</goal> |
673 | 699 | </goals> |
674 | 700 | </execution> |
675 | 701 | </executions> |
676 | 702 | </plugin> |
| 703 | + |
| 704 | + <!-- Javadoc Plugin: generates and attaches a -javadoc.jar containing your project’s API documentation --> |
677 | 705 | <plugin> |
678 | 706 | <groupId>org.apache.maven.plugins</groupId> |
679 | 707 | <artifactId>maven-javadoc-plugin</artifactId> |
|
682 | 710 | <execution> |
683 | 711 | <id>attach-javadocs</id> |
684 | 712 | <goals> |
| 713 | + <!-- jar: package the generated Javadocs into a jar file --> |
685 | 714 | <goal>jar</goal> |
686 | 715 | </goals> |
687 | 716 | </execution> |
688 | 717 | </executions> |
689 | 718 | <configuration> |
| 719 | + <!-- disable strict checking of HTML tags in comments --> |
690 | 720 | <doclint>none</doclint> |
| 721 | + <!-- do not fail the build if Javadoc generation issues errors --> |
| 722 | + <failOnError>false</failOnError> |
691 | 723 | </configuration> |
692 | 724 | </plugin> |
| 725 | + |
| 726 | + <!-- GPG Plugin: signs all deployable artifacts (.jar, .pom, sources, javadoc) with your GPG key --> |
693 | 727 | <plugin> |
694 | 728 | <groupId>org.apache.maven.plugins</groupId> |
695 | 729 | <artifactId>maven-gpg-plugin</artifactId> |
696 | 730 | <version>1.6</version> |
697 | 731 | <executions> |
698 | 732 | <execution> |
699 | 733 | <id>sign-artifacts</id> |
700 | | - <phase>deploy</phase> |
| 734 | + <!-- bind signing to the verify phase, so signatures are created before deploy --> |
| 735 | + <phase>verify</phase> |
701 | 736 | <goals> |
702 | 737 | <goal>sign</goal> |
703 | 738 | </goals> |
704 | 739 | <configuration> |
705 | | - <!-- Prevent `gpg` from using pinentry programs --> |
| 740 | + <!-- Use loopback pinentry to allow unattended signing in CI --> |
706 | 741 | <gpgArguments> |
707 | 742 | <arg>--pinentry-mode</arg> |
708 | 743 | <arg>loopback</arg> |
|
711 | 746 | </execution> |
712 | 747 | </executions> |
713 | 748 | </plugin> |
714 | | - <plugin> |
715 | | - <groupId>org.sonatype.plugins</groupId> |
716 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
717 | | - <version>1.6.8</version> |
718 | | - <extensions>true</extensions> |
719 | | - <configuration> |
720 | | - <serverId>ossrh</serverId> |
721 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
722 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
723 | | - </configuration> |
724 | | - </plugin> |
725 | 749 | </plugins> |
726 | 750 | </build> |
727 | 751 | </profile> |
|
0 commit comments