From 807e69c1964875053d8a14317c390ef244ec71ae Mon Sep 17 00:00:00 2001 From: Shinsuke Sugaya Date: Sat, 8 Aug 2026 11:32:51 +0900 Subject: [PATCH] feat(build): deploy to maven.codelibs.org Publish this plugin through maven.codelibs.org instead of Maven Central, matching the distribution the Fess plugins already use. - Add the wagon-ssh-external build extension, which provides the scpexe:// transport. It drives the external ssh and scp commands rather than an embedded SSH client, so key handling follows the system OpenSSH configuration. - Add distributionManagement for the CodeLibs release and snapshot repositories, and resolve dependencies from them. - Remove central-publishing-maven-plugin. Its DeployLifecycleParticipant disables maven-deploy-plugin, so leaving it in place would prevent deployment entirely. - Declare maven-release-plugin with releaseProfiles=release and move maven-gpg-plugin into that profile, so ordinary builds no longer need a GPG key while release:perform still signs the artifacts. Update the README installation steps to install from a URL. The opensearch-plugin installer resolves the group:artifact:version form against repo1.maven.org only, so that form no longer works for these plugins. Version 3.8.0 and earlier remain available on Maven Central. --- README.md | 8 +++-- pom.xml | 88 ++++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 73 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 43e5bbc..124dbef 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,15 @@ dictionary changes. | 3.8.x | 3.8.0+ | 21+ | | 3.7.x | 3.7.0+ | 21+ | -Released versions are listed on +Released versions are listed in the +[CodeLibs repository](https://maven.codelibs.org/release/org/codelibs/opensearch/opensearch-configsync/). +Version 3.8.0 and earlier were published to [Maven Central](https://central.sonatype.com/artifact/org.codelibs.opensearch/opensearch-configsync/versions). ## Installation ```bash -$OPENSEARCH_HOME/bin/opensearch-plugin install org.codelibs.opensearch:opensearch-configsync:3.8.0 +$OPENSEARCH_HOME/bin/opensearch-plugin install https://maven.codelibs.org/release/org/codelibs/opensearch/opensearch-configsync/3.8.1/opensearch-configsync-3.8.1.zip ``` Restart the node, then confirm that the plugin is loaded: @@ -38,7 +40,7 @@ To install a locally built package instead: ```bash mvn clean package -$OPENSEARCH_HOME/bin/opensearch-plugin install file:target/releases/opensearch-configsync-3.8.0-SNAPSHOT.zip +$OPENSEARCH_HOME/bin/opensearch-plugin install file:target/releases/opensearch-configsync-3.8.1-SNAPSHOT.zip ``` Use `opensearch-plugin remove configsync` to uninstall. diff --git a/pom.xml b/pom.xml index 1725ece..9023bc8 100644 --- a/pom.xml +++ b/pom.xml @@ -44,6 +44,18 @@ UTF-8 + + + + org.apache.maven.wagon + wagon-ssh-external + 3.5.3 + + src/main/resources @@ -139,30 +151,55 @@ - org.apache.maven.plugins - maven-gpg-plugin - 3.2.7 - - - sign-artifacts - verify - - sign - - - - - - org.sonatype.central - central-publishing-maven-plugin - 0.11.0 - true + maven-release-plugin + 3.3.1 - central + release + + + release + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.8 + + + sign-artifacts + verify + + sign + + + true + + + + + + + + + + + + codelibs-repo + CodeLibs Repository + scpexe://maven.codelibs.org/var/www/maven/release + + + codelibs-snapshots + CodeLibs Snapshot Repository + scpexe://maven.codelibs.org/var/www/maven/snapshot + + snapshots.central.sonatype.com @@ -177,7 +214,18 @@ codelibs.org CodeLibs Repository - https://maven.codelibs.org/ + https://maven.codelibs.org/release/ + + + codelibs.org.snapshot + CodeLibs Snapshot Repository + https://maven.codelibs.org/snapshot/ + + false + + + true +