Produce a Pipeline Release Descriptor ​
pipeline-release.json is the complete immutable input to a deployment consumer. It identifies every deployable artefact, pins its exact bytes, and identifies the artefact that carries all compiler-produced Compiled Truth.
The descriptor is written beside the build output. It is not embedded in an artefact it hashes.
Configure the Maven goal ​
Add the release plugin to the application module that owns the deployable artefact:
<plugin>
<groupId>org.pipelineframework</groupId>
<artifactId>pipelineframework-release-maven-plugin</artifactId>
<version>${pipelineframework.version}</version>
<configuration>
<artifactUri>maven:com.example:payments-worker:${project.version}</artifactUri>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>generate-release-descriptor</goal>
</goals>
</execution>
</executions>
</plugin>The goal runs in Maven's verify phase. Supply the immutable Release version explicitly:
./mvnw verify -Dtpf.release.skip=false -Dtpf.release.version=2026.10.02.1 -Dmaven.repo.local="$PWD/.m2/repository"The output is target/pipeline-release.json. The goal reads target/classes/META-INF/pipeline/pipeline-contract.json, hashes the exact packaged bytes, and verifies that the named carrier contains the complete META-INF/pipeline/** tree byte for byte.
Release production is skipped by default, so adding the plugin does not make ordinary mvn verify builds require a Release version or packaged inputs. Keep the execution bound to verify; enable production explicitly with -Dtpf.release.skip=false and supply an immutable version. Skipping writes no descriptor.
tpf.release.version never defaults to ${project.version}. A mutable SNAPSHOT must not accidentally become an immutable Release identity.
The Mojo delegates hashing, deterministic materialisation, carrier comparison, immutable-output locking, and shared validation to the framework-neutral pipelineframework-release-producer library. A future Gradle integration calls that library directly; it does not need to reproduce Maven behaviour or Release semantics.
Optionally publish the Maven artefacts referenced by its immutable coordinates:
./mvnw deploy -Dtpf.release.skip=false -Dtpf.release.version=2026.10.02.1 -Dmaven.repo.local="$PWD/.m2/repository"Standard deploy traverses verify again; use the same Release version and keep final bytes identical. Preserve target/pipeline-release.json separately and unchanged. Configure the plugin → run mvn verify → optionally publish with mvn deploy → preserve the descriptor → verify or deploy it with the CLI. Install the CLI for the Maven-to-CLI hand-off.
The plugin produces a Release. It has no deployment-target selection and is not a Cloud deployment client; there is no tpf:deploy Maven goal.
Parameters ​
| Parameter | Default | Purpose |
|---|---|---|
tpf.release.skip | true | Skip descriptor production for ordinary development builds. |
tpf.release.version | none | Required immutable Release version. |
tpf.release.output | target/pipeline-release.json | External descriptor output. |
tpf.release.contractFile | target/classes/META-INF/pipeline/pipeline-contract.json | Compiler-produced Pipeline Contract. |
tpf.release.artifactFile | Maven primary artefact | Local bytes to hash. |
tpf.release.artifactId | ${project.artifactId} | Release-local artefact identity. |
tpf.release.artifactKind | jar | Build-produced artefact kind. |
tpf.release.artifactUri | derived absolute file: URI | Canonical address recorded in the descriptor; the derived local value requires allowLocalUris. |
tpf.release.compiledTruthArtifactId | the sole artefact | Artefact carrying the complete META-INF/pipeline/** tree. Required for multi-artefact releases. |
tpf.release.allowLocalUris | false | Permit non-promotable file: locations for an explicitly local release. |
The primary JAR is associated with every authored step in contract order and all declared runtime capabilities. A JAR must embed the exact compiler-produced Pipeline Contract, not merely one with the same identity fields.
If no stable repository URI is configured, opt into a local-only descriptor explicitly:
./mvnw verify \
-Dtpf.release.skip=false \
-Dtpf.release.version=local-1 \
-Dtpf.release.allowLocalUris=truePhysical package associations ​
Schema 2 adds an optional deployment section to the same immutable Release Descriptor. The Maven plugin accepts it as a <deployment> configuration element. Omitting it preserves the schema-1 output.
For a complete Maven configuration of the aws-durable-java21-v1 profile, see the hosted Echo integration fixture. Its <deployment> element sets <profile>, lists the required <entries><entry> associations, and declares an ingress <check> with its timeout, input and expected result. Maven Invoker replaces @project.version@ in the fixture. Use your plugin version and the paths and identifiers from your own built package.
A deployment section identifies a provider profile, entries and logical bindings. Each entry selects an existing artefact, compiled module, exact application and handler package locations, Java entry class and trigger. Several framework entries can use the same package while authored steps retain one owning artefact. The shared verifier checks the selected entry and compares the complete packaged Compiled Truth with the carrier.
A Lambda ZIP can carry Compiled Truth in a declared nested JAR such as lib/application.jar. Extraction uses that exact location. Nested JARs must be complete archives, and selected entry classes must be readable. Verification also rejects a declared handler location when an earlier classpath entry would shadow it. Lambda orders its lib JARs by Unicode filename order; see AWS Java packaging.
Command and Query requirements come from compiler metadata. Runtime build metadata records the actual selected effect and capture stores. A deployment consumer must check those requirements against the target's grants and durable bindings. Tenant IDs, resource ARNs, endpoints, credentials and secret values are supplied through that target binding.
A profile name describes delivery requirements. An application execution canary, when declared, supplies bounded input and an expected result; producing or verifying the Release does not execute it. Runtime identity and protocol readiness are separate checks, not evidence that the application canary ran.
The optional-canary change introduced in Contracts PR68 allows a physical deployment to omit check. It does not make entries, artefact associations, bindings or compiled semantic coverage optional. A declared canary still requires a valid entry, a timeout of at most 600 seconds, and valid serialized input and expected-result envelopes. A delivery profile may require it: the complete aws-durable-java21-v1 host retains its ingress canary requirement, while an independently coordinated REST worker establishes its identity and protocol readiness separately.
This distinction matters for a human approval or a service returning generated identifiers and timestamps: do not invent a fixed terminal result simply to describe its physical package. The application still needs acceptance tests and deployed readiness verification.
Older published readers still require check and reject a descriptor which omits it; pin a compatible published and qualified reader and producer version before using optional canaries. Existing Release identities and descriptors are not rewritten. See ADR-0090.
Canonical artefact locations ​
Release locations describe immutable artefact identity; resolver configuration supplies environment-specific access.
| Profile | Form | Notes |
|---|---|---|
| Local | file:///absolute/canonical/path/app.jar | Local development only; not promotable. |
| Maven JAR | maven:com.example:payments-worker:1.2.3 | Resolves to the ordinary JAR coordinate. |
| Maven typed artefact | maven:com.example:payments-native:bin:1.2.3 | The fourth component is the extension. |
| Maven classifier | maven:com.example:payments:zip:lambda:1.2.3 | Extension and classifier are explicit. |
| OCI image | oci://registry.example/tpf/payments@sha256:<64 lowercase hex> | The URI digest must equal the descriptor digest. |
Repository roots, mirrors, credentials, cloud accounts, regions, and deployment targets are resolver or Deployment Plan configuration. They must not be written into the Release Descriptor. The same descriptor can therefore resolve through different Maven repository roots or environment-specific access to its named OCI registry without changing its Release identity.
Promotable Maven locations reject SNAPSHOT versions. Publish the exact bytes under an immutable repository coordinate using standard Maven publication before an independent CLI consumer attempts resolution. The descriptor can be produced during verify before publication; its digests must still match the exact subsequently published bytes.
S3 URLs, HTTP endpoints, tags, and mutable Maven coordinates are not canonical Release locations. A post-push tool may add an OCI image only after it can observe the authoritative digest; it uses the same Release model rather than creating another manifest.
Closed artefact units ​
The local-byte producer accepts these kinds:
| Kind | Closed unit |
|---|---|
jar | One JAR containing its executable content. |
application-archive | One deterministic ZIP containing an entire directory-shaped application such as fast-JAR. |
native-binary | One final native executable. It normally needs a separate Compiled Truth carrier. |
lambda-zip | One final Lambda ZIP. |
compiled-truth | A non-deployable deterministic ZIP containing only META-INF/pipeline/**. |
container-image and lambda-image are valid shared consumer kinds, addressed by oci:, but the local Maven producer cannot truthfully derive their registry digest. Tags and external endpoints are not immutable artefacts.
Fast-JAR ​
Point an application-archive entry at the complete fast-JAR directory. The plugin creates one deterministic ZIP, adds the compiler output under META-INF/pipeline/, and hashes that closed unit.
<configuration>
<releaseVersion>${release.version}</releaseVersion>
<compiledTruthArtifactId>payments-fast-jar</compiledTruthArtifactId>
<artifacts>
<artifact>
<artifactId>payments-fast-jar</artifactId>
<kind>application-archive</kind>
<file>${project.build.directory}/quarkus-app</file>
<uri>maven:com.example:payments-fast-jar:zip:${project.version}</uri>
<stepIds>
<stepId>Validate</stepId>
<stepId>Store</stepId>
</stepIds>
<capabilities>
<capability>local</capability>
<capability>rest</capability>
</capabilities>
</artifact>
</artifacts>
</configuration>Modular releases ​
Use an ordered <artifacts> list. Every authored step must belong to exactly one deployable artefact, every declared runtime capability must be covered, and compiledTruthArtifactId must select an inspectable JAR or archive.
<configuration>
<releaseVersion>${release.version}</releaseVersion>
<compiledTruthArtifactId>validation-worker</compiledTruthArtifactId>
<artifacts>
<artifact>
<artifactId>validation-worker</artifactId>
<kind>jar</kind>
<file>${project.build.directory}/validation-worker.jar</file>
<uri>maven:com.example:validation-worker:${project.version}</uri>
<stepIds><stepId>Validate</stepId></stepIds>
<capabilities><capability>local</capability></capabilities>
</artifact>
<artifact>
<artifactId>settlement-function</artifactId>
<kind>lambda-zip</kind>
<file>${project.build.directory}/settlement.zip</file>
<uri>maven:com.example:settlement-function:zip:${project.version}</uri>
<stepIds><stepId>Settle</stepId></stepIds>
<capabilities><capability>grpc</capability></capabilities>
</artifact>
</artifacts>
</configuration>Configured artefact order is preserved. Empty associations are valid only when the remaining deployable artefacts still provide complete step placement and capability coverage.
Native releases ​
A native executable cannot expose ZIP resources. Pair it with a compiled-truth entry whose source directory is the compiler output directory:
<artifact>
<artifactId>payments-runner</artifactId>
<kind>native-binary</kind>
<file>${project.build.directory}/payments-runner</file>
<uri>maven:com.example:payments-runner:bin:${project.version}</uri>
<!-- stepIds and capabilities identify what this executable hosts -->
</artifact>
<artifact>
<artifactId>payments-compiled-truth</artifactId>
<kind>compiled-truth</kind>
<file>${project.build.outputDirectory}/META-INF/pipeline</file>
<uri>maven:com.example:payments-compiled-truth:zip:${project.version}</uri>
</artifact>Set compiledTruthArtifactId to payments-compiled-truth. The Compiled Truth-only artefact has no step or capability associations.
Repeatability and promotion ​
Digests are lowercase SHA-256 over exact final bytes. Directory materialisation uses sorted entries and fixed ZIP timestamps. Re-running with identical inputs produces byte-identical JSON with stable field and list order and a final newline.
If an existing output has the same pipeline, contract, and Release identity, byte-identical regeneration is allowed; different content is rejected. A registry remains the cross-build immutability authority.
Promote the descriptor unchanged. Change resolver credentials, mirrors, target accounts, and Deployment Plans per environment. Do not rewrite URIs, digests, placement, or Compiled Truth during promotion.
Register with a self-hosted Coordinator ​
The private, default-disabled Coordinator admin API accepts an absolute descriptor path in POST /tpf/admin/tenants/{tenantId}/pipelines/{pipelineId}/releases/register. The descriptor must be readable by the Coordinator process; this is not a file-upload endpoint. Enable and protect the admin API through deployment-owned configuration, not through Release fields.
For a closure containing canonical maven: locations, native admission uses the shared pipelineframework-release-resolver verifier. It resolves every artefact, verifies every pinned digest and the embedded Pipeline Contract before storing the verified closure. It preserves the descriptor unchanged. Existing local file/JAR admission remains available. Registering identical immutable content is idempotent; conflicting content for an existing Release identity is rejected.
| Coordinator configuration | Default | Purpose |
|---|---|---|
pipeline.orchestrator.releases.resolver.maven-settings | absent | Explicit readable settings file for repository profiles and server credentials. |
pipeline.orchestrator.releases.resolver.maven-local-repository | maven under the Release storage root | Environment-owned resolver cache. |
pipeline.orchestrator.releases.resolver.maven-repositories | Maven Central | Repository roots available to this Coordinator. |
Keep repository credentials in settings servers, not repository URL user information or the descriptor. The current shared Maven provider supports direct server username/password authentication and profile repositories; encrypted settings, mirrors and proxies are not covered by this admission contract. OCI resolution is not configured in native Coordinator admission, so a Maven closure also requiring OCI resolution is rejected. JVM admission coverage does not establish native-image compatibility for the Maven Resolver dependency graph.
Registration and the admin activation operation do not physically start a worker or establish its readiness. The Coordinator remains responsible for Release validation, activation, execution pinning and compatibility; the Deployment Target owns physical deployment and readiness checks. Do not present a registered or merely admin-activated Release as evidence of a successfully deployed, executing application.