Publishing Reference ​
For current product release selection, follow Framework Release Process. The commands below describe repository-local Maven mechanics and include historical examples. Apply them only to components selected for a new release; they do not require lockstep publication across repositories.
Public reactor verification ​
Publish the framework reactor with ./mvnw -f framework/pom.xml. Before a Central release, run scripts/verify-framework-publication.mjs against the canonical reactor's effective central-publishing configuration and the staged publication artifacts, as the publication workflows do. No verification-only Maven profile or alternate reactor is used. The verifier is packaging-aware: public pom artifacts require their POM and signature, while public jar artifacts also require main, sources, Javadoc, and signature files.
Reference Appendix
This is the long-form Maven Central and release reference. Start with Publishing, Framework Release Process, or Docs Snapshot Process for the canonical path.
This document explains how to publish immutable The Pipeline Framework releases to Maven Central, refresh the current development snapshot, and manage the project's versioning and release process properly.
TL;DR: Guarded Release Process ​
The release process uses the Maven Release Plugin for the root reactor, then GitHub Actions publishes framework artifacts from the release tag. Keep Maven's push step disabled so the generated release and next-development commits can be inspected before they reach main.
- Select component versions. Follow the Framework Release Process to publish the planned new components and commit the selection manifest.
- Validate the selection. Run the selected-release Full Train and record its
validationRunIdafter it succeeds. - Prepare the product release locally. Freeze the BOM pins, prepare the release commits and tag with Maven pushing disabled, and complete the required local checks.
- Push after the release checks pass. Push the prepared commits to
main, then push the immutablevX.Y.Ztag to trigger publishing. - Verify publication. Check the artifacts on Maven Central.
The GitHub Actions workflow automatically:
- Runs the workflows selected by the pushed paths on
main - Signs all artifacts with GPG
- Deploys to Sonatype Central
- Creates a GitHub release with notes
Sonatype Central can take a long time to move an automatic deployment from validated to published. The central-publishing profile therefore sets the Central Publishing plugin's waitMaxTime to 7200 seconds, and the publish workflow allows 150 minutes for the job. If the workflow still times out but Central later publishes the deployment, verify Maven Central metadata and create the skipped GitHub release from the existing immutable tag.
Table of Contents ​
- Overview
- Version Management
- Maven Central Publishing Setup
- settings.xml Configuration
- GitHub Actions Workflow
- Development Snapshot Publishing
- Safe Release Process
- Troubleshooting
Overview ​
The Pipeline Framework is published to Maven Central to make it available to developers who want to use it in their projects. This document outlines the process, configuration, and best practices for publishing releases.
Version Management ​
The framework release version is defined in the root POM (pom.xml) as the root reactor's <version>. Compatibility and reference surfaces consume that version from their owning repositories rather than participating in this reactor.
Keep these categories aligned during every release:
- Root reactor: framework and framework-owned tooling listed in the root
pom.xml. - Published repositories: compiler, contracts, runtime, connectors, Blocks, and Expansions release their own artifact sets.
- Downstream compatibility surfaces: examples (including
ai-sdk), reference implementations, CSV Kafka Payments, and RAG Turnkey consume released artifacts in their own reactors.
Version Property Definition ​
In the root POM (pom.xml):
<version>26.4.5-SNAPSHOT</version>Root-reactor children should inherit this version through the parent relationship and omit their own project <version> where possible. Alternate top-level POMs and standalone builds may need an explicit parent version or dependency property, so they must be checked separately.
For the v26.5.2 release, use release version 26.5.2, tag v26.5.2, and next development version 26.6.1-SNAPSHOT.
Using Maven Versions Plugin ​
To update root-reactor versions consistently, use the Maven Versions Plugin:
# Update the version across all modules
./mvnw versions:set -DnewVersion=1.0.0
# Verify the changes before committing
./mvnw versions:commit
# Or rollback if needed
./mvnw versions:revertThis ensures that modules in the selected Maven reactor are updated consistently. It does not automatically update alternate POM entrypoints or standalone surfaces that are not part of that reactor.
Documentation Snapshot (Hybrid Versioning) ​
For released docs versions, snapshot the docs into docs/versions/:
cd docs
npm run snapshot -- --version v0.9.3Then update docs/versions.md to mark the latest version and confirm the version selector list.
Maven Central Publishing Setup ​
The Maven Central publishing configuration is located in the framework's parent POM (framework/pom.xml). It is handled by the GitHub Actions workflow, but this is a description of how such setup could be done on your local workstation.
Required Plugins ​
The following plugins are configured in the framework POM for Maven Central compliance:
- Source Plugin: Generates sources JAR
- Javadoc Plugin: Generates documentation JAR
- GPG Plugin: Signs artifacts
- Central Publishing Plugin: Deploys to Sonatype Central
For the complete configuration, see the central-publishing profile in framework/pom.xml.
Local settings.xml Configuration ​
To authenticate with Sonatype Central and provide GPG credentials, you could configure your ~/.m2/settings.xml file:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>central</id>
<username>your-sonatype-username</username>
<password>your-encrypted-sonatype-password</password>
</server>
</servers>
</settings>GPG Configuration ​
The publishing workflow handles GPG signing on GitHub Actions, but for reference, this is how you could configure it on your local machine:
<profiles>
<profile>
<id>central-publishing</id>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>your-gpg-passphrase</gpg.passphrase>
<gpg.keyname>your-gpg-key-id</gpg.keyname>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>central-publishing</activeProfile>
</activeProfiles>Encrypting Passwords ​
To encrypt your Sonatype password on your local settings.xml:
Create the master password:
bash./mvnw --encrypt-master-passwordThis creates
~/.m2/settings-security.xmlEncrypt your Sonatype password:
bash./mvnw --encrypt-passwordUpdate settings.xml with the encrypted password (prefixed with
{and suffixed with}).
GitHub Actions Workflow ​
The publishing process is automated using GitHub Actions.
Required GitHub Secrets ​
These secrets must exist in the GitHub repository:
CENTRAL_USERNAME- Your Sonatype usernameCENTRAL_PASSWORD- Your Sonatype passwordGPG_PRIVATE_KEY- Your GPG private key exported withgpg --export-secret-keys --armor <your-key-id>GPG_PASSPHRASE- The passphrase for your GPG key
Development Snapshot Publishing ​
The current main development version is published by each Maven producer's snapshot workflow on pushes to main, including merged pull requests. Publication depends on a successful workflow run and may be delayed. The workflow can also be dispatched manually, but its publish job runs only from main. It verifies the same framework reactor that the release workflow deploys, then publishes the existing -SNAPSHOT version with the central-publishing profile. It does not create a tag or GitHub release.
Snapshot publication is not the nightly system-test train. The train remains scheduled to validate the integrated product; it does not republish snapshots.
Sonatype Central snapshots are mutable development artifacts and are currently cleaned up after 90 days. Before the first snapshot deployment, enable SNAPSHOT publishing for the project namespace in the Central Portal. Consumers must explicitly enable the Central snapshots repository and should depend on the active framework -SNAPSHOT version:
<repositories>
<repository>
<id>central-portal-snapshots</id>
<name>Central Portal Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>Snapshots do not have the immutability guarantees of tagged Maven Central releases. Use a released version for production dependencies that require a stable, permanent artifact.
Safe Release Process ​
Standard Release Workflow ​
Use the Maven Release Plugin as the versioning tool for the root reactor, but keep publication gated by explicit inspection and CI validation.
Start from a clean release branch:
bashgit status --short git fetch origin --tagsConfirm the branch contains the intended docs snapshot and no unrelated local changes.
Prepare the release locally without pushing:
bash./mvnw release:prepare \ -DpushChanges=false \ -DreleaseVersion=X.Y.Z \ -DdevelopmentVersion=NEXT_VERSION-SNAPSHOT \ -Dtag=vX.Y.Z \ -Darguments="-DskipTests"The root POM also configures
<pushChanges>false</pushChanges>for the release plugin. Keep the command-line flag anyway so the behavior is explicit in shell history and release notes.The plugin creates two local commits and a local tag:
[maven-release-plugin] prepare release vX.Y.Z[maven-release-plugin] prepare for next development iterationvX.Y.Z
Inspect the release plugin output before any push:
bashgit log --oneline --decorate -n 5 git diff HEAD~2..HEAD -- pom.xml framework/pom.xmlThe release commit should contain the release version. The next-development commit should contain the next
-SNAPSHOTversion.Update downstream repositories after publication: The release plugin only updates this repository. Once the new snapshot exists, open ordinary dependency-version updates in the examples, reference implementations, CSV Kafka Payments, and RAG Turnkey repositories. Their CI is the compatibility gate; do not recreate their reactors inside this release build.
Run the release validation gate before pushing:
bash./mvnw -f framework/pom.xml verify npm --prefix docs run buildIf time forces a smaller gate, record exactly which commands were skipped and do not claim full release validation.
Push the validated commits:
bashgit push origin mainWatch the
mainworkflows. If a workflow fails because of version drift, fixmainbefore pushing the tag.Publish the release:
bashgit push origin vX.Y.ZThis triggers the GitHub Actions workflow that runs
mvn deployto publish framework artifacts to Maven Central.
Note: The mvn release:perform step is not used in this setup since deployment is handled by GitHub Actions when a tag is pushed.
Important Publishing Details (Central Validation) ​
Publishing scope ​
The publish workflow deploys the framework reactor's remaining artifacts and skips examples. The runtime, deployment, Spring runtime, and foundational plugin artifacts are published by the standalone pipelineframework-runtime repository:
- Maven runs from this repository's
framework/pom.xmlreactor. - The root POM is included in the reactor but is not deployed (
maven.deploy.skip=truein the root, overridden to false inframework/pom.xml).
Note: Publishing the framework-parent artifact is expected. It is the BOM/parent POM that consumers import for dependency management, so it will appear in Maven Central autocomplete results.
Publishing only framework artifacts does not remove downstream compatibility obligations. Each consumer repository pins released TPF versions and proves those coordinates in its own CI.
Main-branch E2E impact ​
The CSV E2E workflows run from alternate topology POMs. During the v26.4.4 release, release:prepare updated the root reactor to 26.4.5-SNAPSHOT, but left examples/csv-payments/pom.pipeline-runtime.xml, examples/csv-payments/pom.monolith.xml, and ai-sdk/pom.xml at 26.4.4-SNAPSHOT. Because the release plugin pushed by default, main received the drift before it was reviewed. The next main E2E runs then failed at Maven model resolution rather than test execution.
Treat this as a release-blocking condition:
rg -n "OLD_VERSION-SNAPSHOT" --glob "pom*.xml" --glob "!docs/versions/**"The command should return no active POMs after the next-development commit is prepared.
Flattening at publish time (property-gated) ​
Central validation requires resolved dependency versions. We avoid profiles for core behavior and enable flattening only during publish using a property:
- Default:
-Dtpf.flatten.skip=true(skip flatten during normal builds) - Publish:
-Dtpf.flatten.skip=false(flatten only for release)
This keeps local builds clean while producing Central-compliant POMs.
Tag immutability ​
Release tags and published coordinates are immutable. Do not move or recreate a tag to repair publication. First reconcile the existing Central deployment. If publication has already succeeded, recover only the failed downstream step rather than uploading those coordinates again. A transport or validation recovery with unchanged release inputs does not itself require releasing every component again. Changed release contents require a new component version and tag through the owning release process.
When to Use the Versions Plugin Approach ​
Use this manual approach only when you need fine-grained control or the Release Plugin is not available:
- Manual Version Update:
Update the version using the Maven Versions Plugin:
bash./mvnw versions:set -DnewVersion=1.0.0 ./mvnw versions:commitTest the build with
./mvnw clean install -P central-publishingCreate a Git tag (e.g.,
v1.0.0)Push the tag to trigger the GitHub Actions release workflow
Comparison:
- Release Plugin: Handles version updates across the selected Maven reactor, creates local release commits, and creates the local tag. It must run with push disabled so version drift can be fixed before
mainmoves. - Versions Plugin: Offers more manual control but requires multiple manual steps and careful coordination
Alternative: Manual Release Workflow ​
For more control, you can create a workflow dispatch that requires manual triggering:
name: Manual Publish to Maven Central
on:
workflow_dispatch:
inputs:
release_version:
description: 'Release version (e.g., 1.0.0)'
required: true
type: string
dry_run:
description: 'Dry run? (true/false)'
required: false
default: true
type: booleanThis approach allows manual control over when releases happen.
Troubleshooting ​
GPG Signing Errors:
- Verify your GPG key is properly configured
- Check that the GPG key ID matches what's in your keystore
- Ensure the GPG agent is running or passphrase is provided
Sonatype Authentication Errors:
- Verify your credentials in settings.xml
- Ensure you're using encrypted passwords in public repositories
- Check that your Central account has permissions for the group ID
Sonatype Central Publishing Errors:
- Review Sonatype Central logs in the GitHub Actions workflow
- Ensure all required artifacts (JARs, sources, javadoc, signatures) are present
- Check that artifacts meet Maven Central requirements
Downstream CI Fails Before Tests Start:
- Check the owning repository's pinned compiler, runtime, connector, Block, and Expansion versions.
- Confirm the required snapshot has actually been published before rerunning the whole downstream CI lane.
Testing the Setup ​
Before pushing a tag that triggers the release workflow:
mvn clean verify- test the build locally (runs unit tests)mvn clean verify -DskipITs- test build without integration testsmvn clean verify -P central-publishing- test with the central publishing profile but without deployment- Use a test Sonatype repository for verification
Important Notes ​
- Only the framework artifacts are published to Maven Central.
- Examples and SDK surfaces are not Central artifacts; their owning repositories pin and test released TPF coordinates.
- The root POM orchestrates this repository's framework build while the framework POM handles publishing.
- Prefer parent inheritance inside each repository's canonical reactor. Update downstream dependency versions through ordinary reviewed changes after publication.
- Always verify release artifacts on Maven Central after a successful deployment.