feat(build): deploy to maven.codelibs.org - #17
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Publish this plugin through maven.codelibs.org instead of Maven Central, matching the distribution the Fess plugins already use.
pom.xml
wagon-ssh-externalbuild extension, which provides thescpexe://transport. It drives the externalsshandscpcommands rather than an embedded SSH client, so key handling follows the system OpenSSH configuration. The embedded alternative,wagon-ssh, depends oncom.jcraft:jsch0.1.55, whose only key types are DSA, ECDSA, RSA and PKCS8.distributionManagementfor the CodeLibs release and snapshot repositories, and resolve dependencies from them.central-publishing-maven-plugin. ItsDeployLifecycleParticipantdisablesmaven-deploy-plugin, so leaving it in place would prevent deployment entirely.maven-release-pluginwithreleaseProfiles=releaseand movemaven-gpg-plugininto that profile. Ordinary builds no longer need a GPG key, whilerelease:performstill signs the artifacts.README.md
Install from a URL instead of Maven coordinates. The
opensearch-plugininstaller resolves thegroup:artifact:versionform againstrepo1.maven.orgonly, so that form no longer works for this plugin. Version 3.8.0 and earlier remain available on Maven Central.Verification
mvn clean deploy -DskipTests -DaltDeploymentRepository=...deploys the jar, sources, javadoc and plugin zip, confirmingmaven-deploy-pluginis no longer disabled.mvn help:effective-pomshowsmaven-gpg-plugininbuild/pluginsonly when-Preleaseis given.mvn testpasses.