Skip to main content

jeap-deployed-files-maven-extension

Source on GitHub

jeap-deployed-files-maven-extension is a Maven core extension that records every file a build deploys to a remote repository and writes the list as a JSON file when the build ends. A later step of a delivery pipeline can then work with exactly the files the build has published, for example to copy them to another repository, without having to guess them from module coordinates or a repository search.

  • Records what Maven really uploaded: jars, POMs, attached artifacts such as -sources and -javadoc, signatures, and the maven-metadata.xml files, each with its repository, path, size and SHA-1
  • Snapshots are listed under their timestamped file names; modules that are not deployed are absent
  • Failed and unfinished uploads are listed as such, so a partial deploy stays traceable
  • Loaded with -Dmaven.ext.class.path: the projects that are built need no change
  • Never fails the build and adds no measurable build time; the jar has no dependencies beyond Maven itself

Documentation​

Start with Getting started, then follow the links below.

TopicKindFile
Getting started: deploy with the extension and find the listTutorialdocs/getting-started.md
Use the list in a delivery pipelineHow-to guidedocs/pipeline-how-to.md
Configuration: user properties, output path, log outputReferencedocs/configuration.md
Format of deployed-files.jsonReferencedocs/deployed-files-json.md
Architecture: how the extension sees what Maven deploys, design decisionsExplanationdocs/architecture.md

Modules​

Group id of the extension is ch.admin.bit.jeap.

ModulePurpose
jeap-deployed-files-maven-extensionMaven core extension that writes the list of the files a build has deployed