{"id":20332571,"url":"https://github.com/dernasherbrezon/apt-maven-plugin","last_synced_at":"2025-10-26T10:38:31.467Z","repository":{"id":25098690,"uuid":"28519777","full_name":"dernasherbrezon/apt-maven-plugin","owner":"dernasherbrezon","description":"Maven plugin to deploy into remote debian repository","archived":false,"fork":false,"pushed_at":"2024-02-29T19:43:27.000Z","size":267,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T17:23:28.016Z","etag":null,"topics":["apt","apt-get","deb","gpg","java","repository","ubuntu"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dernasherbrezon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-26T19:54:04.000Z","updated_at":"2021-10-21T14:28:22.000Z","dependencies_parsed_at":"2024-11-14T20:39:48.092Z","dependency_job_id":null,"html_url":"https://github.com/dernasherbrezon/apt-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dernasherbrezon%2Fapt-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dernasherbrezon%2Fapt-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dernasherbrezon%2Fapt-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dernasherbrezon%2Fapt-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dernasherbrezon","download_url":"https://codeload.github.com/dernasherbrezon/apt-maven-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248482950,"owners_count":21111408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apt","apt-get","deb","gpg","java","repository","ubuntu"],"created_at":"2024-11-14T20:27:19.920Z","updated_at":"2025-10-26T10:38:31.387Z","avatar_url":"https://github.com/dernasherbrezon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apt-maven-plugin [![.github/workflows/build.yml](https://github.com/dernasherbrezon/apt-maven-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/dernasherbrezon/apt-maven-plugin/actions/workflows/build.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dernasherbrezon_apt-maven-plugin\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dernasherbrezon_apt-maven-plugin)\n\nThis plugin deploys .deb artifacts into apt repository. It searches for attached artifacts which end with `.deb` extension. `.deb` files could be generated by [jdeb](https://github.com/tcurdt/jdeb). \n\n## \n\n## Usage\n\nTo publish .deb artifacts a distribution section must be configured:\n\n```\n\u003cdistributionManagement\u003e\n    \u003crepository\u003e\n      \u003cid\u003eapt-repository\u003c/id\u003e\n      \u003cname\u003eMaven artifact repository to act as apt-repository\u003c/name\u003e\n      \u003curl\u003ehttps://example.com/release\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/distributionManagement\u003e\n```\n\nAnd configure `apt-maven-plugin`:\n\n```\n\u003cplugins\u003e\n...\n  \u003cplugin\u003e\n    \u003cgroupId\u003ecom.aerse.maven\u003c/groupId\u003e\n    \u003cartifactId\u003eapt-maven-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e1.21\u003c/version\u003e\n    \u003cexecutions\u003e\n      \u003cexecution\u003e\n        \u003cid\u003edeploy\u003c/id\u003e\n        \u003cgoals\u003e\n          \u003cgoal\u003edeploy\u003c/goal\u003e\n        \u003c/goals\u003e\n      \u003c/execution\u003e\n    \u003c/executions\u003e\n    \u003cconfiguration\u003e\n      \u003ccomponent\u003emain\u003c/component\u003e \u003c!-- Required. Example: main restricted universe. --\u003e\n      \u003ccodename\u003erepo\u003c/codename\u003e \u003c!-- Required. Example: mycompany, repo --\u003e\n      \u003cskip\u003efalse\u003c/skip\u003e \u003c!-- Not required. By default: false --\u003e\n      \u003csign\u003etrue\u003c/sign\u003e \u003c!-- Not required. By default: false. GPG-sign of \"Release\" file. Configuration is same as in maven-gpg-plugin --\u003e\n      \u003ckeyname\u003e123\u003c/keyname\u003e \u003c!-- Not required. Keyname from the gpg keychain --\u003e\n      \u003cpassphraseServerId\u003egpg.passphrase\u003c/passphraseServerId\u003e \u003c!-- Not required. Id of server from local settings.xml --\u003e\n    \u003c/configuration\u003e\n  \u003c/plugin\u003e\n...\n\u003c/plugins\u003e\n```\n\n* component - type of repository. Ubuntu proposes the following naming for them:\n  * main- Officially supported software. Recommended.\n  * restricted - Supported software that is not available under a completely free license.\n  * universe - Community maintained software, i.e. not officially supported software.\n  * multiverse - Software that is not free.\n* codename - codename of release. \n\n\n## Hints\n\nIt is possible to deploy multiple `.deb` file using command line. Configuration will be taken from `pom.xml`:\n\n```\nmvn apt:deploy -Dmaven.apt.files=target/*.deb\n```\n\nIf package was signed once (using \"sign=true\" option), then un-sign (using \"sign=false\") will cause GPG checksum failure during ```apt-get update```.  Maven Wagon doesn't support \"delete\" operation, so I cannot remove \"Release.gpg\" file from apt repository. Please remove \"Release.gpg\" manually if you have to stop signing.\n\nWorks perfectly with [aws-maven](https://github.com/spring-projects/aws-maven \"aws-maven\"). Just configure distribution section to use `s3://bucketname`.\n\nIf you want to publish only .deb artifacts, then turn standard deploy plugin off:\n\n```\n  \u003cplugin\u003e\n    \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n    \u003cartifactId\u003emaven-deploy-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e2.7\u003c/version\u003e\n    \u003cconfiguration\u003e\n      \u003cskip\u003etrue\u003c/true\u003e\n    \u003c/configuration\u003e\n  \u003c/plugin\u003e\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdernasherbrezon%2Fapt-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdernasherbrezon%2Fapt-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdernasherbrezon%2Fapt-maven-plugin/lists"}