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.
- Each jar in the root of a plugin folder, with the plugin name as
groupId. - Each jar directly in
polarion/plugins, withgroupIdcom.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: theBundle-ClassPathof the bundle lists it, and it holds at least one package from theExport-Packageof 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.
--polarion-home— path to folder where polarion is installed--action— maven action:installto local repo ordeployto remote repo--repository-id— if maven actiondeployis used, repository id from maven settings.xml should be provided to use credentials for authentication--repository-url— if maven actiondeployis used, remote repository URL should be provided--skip-existing— withdeploy, 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 theusernameandpasswordor thehttpHeadersof the server in settings.xml
To install to local maven repo:
polarion-artifacts-deployer.py --polarion-home C:\Polarion --action installTo 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>>