Read-only mirror of https://github.com/SchweizerischeBundesbahnen/polarion-artifacts-deployer — SBB. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sergey Grigoriev 3904e723e3
fix: deploy SNAPSHOT-named jars and resume a deploy (#114)
Polarion 2612 ships the exported nested jar lib/jtidy-r8-SNAPSHOT.jar.
Its artifactId ended in -SNAPSHOT, so a release repository read the
artifact metadata path as snapshot version metadata and rejected it.
Drop a trailing -SNAPSHOT from every artifactId.

The deployer stops at the first failure, and a repository with a
redeploy ban then rejects every artifact of the first run. Add
--skip-existing: on deploy it skips an artifact whose jar and pom are
in the repository. The check authenticates with the username and
password or the httpHeaders of the server in settings.xml.

Refs: #113
2026-12-01 15:58:02 +01:00
.github chore(deps): update astral-sh/setup-uv action to v10.4.0 (#109) 2026-11-25 04:52:05 +00:00
LICENSES chore: preparation for publishing (#5) 2024-07-02 17:17:43 +02:00
polarion-artifacts-deployer fix: deploy SNAPSHOT-named jars and resume a deploy (#114) 2026-12-01 15:58:02 +01:00
tests fix: deploy SNAPSHOT-named jars and resume a deploy (#114) 2026-12-01 15:58:02 +01:00
.gitignore chore: update repository with template (#15) 2025-04-30 10:02:32 +02:00
.pre-commit-config.yaml chore(deps): update pre-commit hooks (#110) 2026-11-29 00:30:16 +00:00
.yamlfix.toml chore: preparation for publishing (#5) 2024-07-02 17:17:43 +02:00
CODING_STANDARDS.md Initial commit 2024-05-23 10:33:49 +02:00
CONTRIBUTING.md chore: update repository with template (#15) 2025-04-30 10:02:32 +02:00
README.md fix: deploy SNAPSHOT-named jars and resume a deploy (#114) 2026-12-01 15:58:02 +01:00
renovate.json chore: preparation for publishing (#5) 2024-07-02 17:17:43 +02:00

Polarion artifacts deployer

polarion-artifacts-deployer

This polarion-artifacts-deployer script is written to use jar files from Polarion delivery for Polarion extension development. The script provides ability to install jars to local maven repository or deploy jars to SBB artifactory.

Installed jars

  • Each jar in the root of a plugin folder, with the plugin name as groupId.
  • Each jar directly in polarion/plugins, with groupId com.polarion.thirdparty.
  • Each nested jar of a plugin folder that the bundle exports, with the plugin name as groupId. A nested jar is exported when two conditions are true: the Bundle-ClassPath of the bundle lists it, and it holds at least one package from the Export-Package of the bundle. Other nested jars are private to the bundle, so code compiled against them fails at runtime.

The artifactId is the jar file name without .jar and without a trailing -SNAPSHOT. A release repository reads <artifactId>-SNAPSHOT/maven-metadata.xml as the metadata of a snapshot version and rejects it. A nested jar with the coordinates of another jar of the same bundle is skipped with a message.

Supported parameters:

  • --polarion-home — path to folder where polarion is installed
  • --action — maven action: install to local repo or deploy to remote repo
  • --repository-id — if maven action deploy is used, repository id from maven settings.xml should be provided to use credentials for authentication
  • --repository-url — if maven action deploy is used, remote repository URL should be provided
  • --skip-existing — with deploy, skip an artifact whose jar and pom are already in the repository. Use it to resume an interrupted deploy into a repository that forbids redeployment. The check authenticates with the username and password or the httpHeaders of the server in settings.xml

Examples

To install to local maven repo:

polarion-artifacts-deployer.py --polarion-home C:\Polarion --action install

To deploy to remote maven repository:

polarion-artifacts-deployer.py --polarion-home C:\Polarion --action deploy --repository-id <<private-maven-repo-id-from-settings.xml>> --repository-url https://<<private-maven-repo-url>>