{"id":31769974,"url":"https://github.com/jfrog/artifactory-maven-plugin","last_synced_at":"2026-03-05T13:03:19.464Z","repository":{"id":39347511,"uuid":"294449237","full_name":"jfrog/artifactory-maven-plugin","owner":"jfrog","description":"A Maven plugin to resolve artifacts from Artifactory, deploy artifacts to Artifactory, capture and publish build info.","archived":false,"fork":false,"pushed_at":"2026-01-31T06:58:41.000Z","size":189,"stargazers_count":27,"open_issues_count":38,"forks_count":38,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-01-31T20:34:49.502Z","etag":null,"topics":["artifactory","java","jfrog","maven"],"latest_commit_sha":null,"homepage":"https://www.jfrog.com/confluence/display/JFROG/Maven+Artifactory+Plugin","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/jfrog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-10T15:29:20.000Z","updated_at":"2025-12-10T09:06:00.000Z","dependencies_parsed_at":"2023-01-23T12:01:25.491Z","dependency_job_id":"a902b793-b730-4061-8e1c-ef1a1182312d","html_url":"https://github.com/jfrog/artifactory-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/jfrog/artifactory-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrog%2Fartifactory-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrog%2Fartifactory-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrog%2Fartifactory-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrog%2Fartifactory-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfrog","download_url":"https://codeload.github.com/jfrog/artifactory-maven-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfrog%2Fartifactory-maven-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30127218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["artifactory","java","jfrog","maven"],"created_at":"2025-10-10T02:56:03.052Z","updated_at":"2026-03-05T13:03:19.422Z","avatar_url":"https://github.com/jfrog.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Maven Artifactory Plugin\n\n[![Build status](https://github.com/jfrog/artifactory-maven-plugin/workflows/Test/badge.svg)](https://github.com/jfrog/artifactory-maven-plugin/actions?query=workflow%3ATest)\n\n\u003c/div\u003e\n\n# Table of Contents\n\n- [Overview](#overview)\n- [Using the Maven Artifactory plugin](#using-maven-artifactory-plugin)\n    - [Basic Configuration](#basic-configuration)\n    - [Full Configuration](#full-configuration)\n    - [Configuration Details](#configuration-details)\n    - [Reading Environment Variables and System Properties](#reading-environment-variables-and-system-properties)\n    - [Example](#example)\n- [Contribution](#-contributions)\n\n## Overview\n\nThe Maven Artifactory integrates in your build to allow you to do the following:\n\n1. Resolve artifacts from Artifactory.\n2. Capture the full build information and publish it to Artifactory.\n3. Deploy all build Artifacts to Artifactory.\n\n## Using Maven Artifactory plugin\n\nThe Maven Artifactory Plugin coordinates are org.jfrog.buildinfo:artifactory-maven-plugin:x.x.x.\nIt can be viewed\non [releases.jfrog.io](https://releases.jfrog.io/artifactory/oss-release-local/org/jfrog/buildinfo/artifactory-maven-plugin).\n\n### Basic Configuration\n\nA typical build plugin configuration would be as follows:\n\n```xml\n\n\u003cbuild\u003e\n  \u003cplugins\u003e\n    \u003cplugin\u003e\n      \u003cgroupId\u003eorg.jfrog.buildinfo\u003c/groupId\u003e\n      \u003cartifactId\u003eartifactory-maven-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e3.6.1\u003c/version\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cid\u003ebuild-info\u003c/id\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003epublish\u003c/goal\u003e\n          \u003c/goals\u003e\n          \u003cconfiguration\u003e\n            \u003cdeployProperties\u003e\n              \u003cgradle\u003eawesome\u003c/gradle\u003e\n              \u003creview.team\u003eqa\u003c/review.team\u003e\n            \u003c/deployProperties\u003e\n            \u003cpublisher\u003e\n              \u003ccontextUrl\u003ehttps://acme.jfrog.io\u003c/contextUrl\u003e\n              \u003cusername\u003edeployer\u003c/username\u003e\n              \u003cpassword\u003edontellanyone\u003c/password\u003e\n              \u003crepoKey\u003elibs-release-local\u003c/repoKey\u003e\n              \u003csnapshotRepoKey\u003elibs-snapshot-local\u003c/snapshotRepoKey\u003e\n            \u003c/publisher\u003e\n          \u003c/configuration\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n    \u003c/plugin\u003e\n  \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\nThe plugin's invocation phase is validate by default and we recommend you don't change it so the plugin is called as\nearly as possible in the lifecycle of your\nMaven build.\n\n### Full Configuration\n\nThe example above configures the Artifactory publisher, to deploy build artifacts either to the releases or the\nsnapshots repository of Artifactory when `mvn deploy` is executed.\n\nHowever, the Maven Artifactory Plugin provides many other configurations:\n\n```xml\n\n\u003cconfiguration\u003e\n  \u003cartifactory\u003e\n    \u003cincludeEnvVars\u003etrue\u003c/includeEnvVars\u003e\n    \u003cenvVarsExcludePatterns\u003e*password*,*secret*,*key*,*token*,*passphrase*\u003c/envVarsExcludePatterns\u003e\n    \u003cenvVarsIncludePatterns\u003e*os*\u003c/envVarsIncludePatterns\u003e\n    \u003ctimeoutSec\u003e60\u003c/timeoutSec\u003e\n  \u003c/artifactory\u003e\n  \u003cbuildInfo\u003e\n    \u003cagentName\u003e..\u003c/agentName\u003e\n    \u003cagentVersion\u003e..\u003c/agentVersion\u003e\n    \u003cbuildName\u003eplugin-demo\u003c/buildName\u003e\n    \u003cbuildNumber\u003e${buildnumber}\u003c/buildNumber\u003e\n    \u003cbuildUrl\u003ehttps://build-url.org\u003c/buildUrl\u003e\n    \u003c!-- If you'd like to associate the published build-info with a JFrog Project, add the project key here --\u003e\n    \u003cproject\u003e..\u003c/project\u003e\n\n    \u003cbuildNumbersNotToDelete\u003e\u003c/buildNumbersNotToDelete\u003e\n    \u003cbuildRetentionMaxDays\u003eN\u003c/buildRetentionMaxDays\u003e\n    \u003cbuildRetentionCount\u003eN\u003c/buildRetentionCount\u003e\n    \u003cbuildUrl\u003e..\u003c/buildUrl\u003e\n    \u003cprincipal\u003e..\u003c/principal\u003e\n  \u003c/buildInfo\u003e\n  \u003cdeployProperties\u003e\n    \u003cmaven\u003eawesome\u003c/maven\u003e\n  \u003c/deployProperties\u003e\n  \u003cpublisher\u003e\n    \u003ccontextUrl\u003ehttp://localhost:8081/artifactory\u003c/contextUrl\u003e\n    \u003cusername\u003e${username}\u003c/username\u003e\n    \u003cpassword\u003e${password}\u003c/password\u003e\n    \u003cexcludePatterns\u003e*-tests.jar\u003c/excludePatterns\u003e\n    \u003crepoKey\u003elibs-release-local\u003c/repoKey\u003e\n    \u003csnapshotRepoKey\u003elibs-snapshot-local\u003c/snapshotRepoKey\u003e\n\n    \u003cpublishArtifacts\u003etrue/false\u003c/publishArtifacts\u003e\n    \u003cpublishBuildInfo\u003etrue/false\u003c/publishBuildInfo\u003e\n    \u003cexcludePatterns\u003e..\u003c/excludePatterns\u003e\n    \u003cincludePatterns\u003e..\u003c/includePatterns\u003e\n    \u003cfilterExcludedArtifactsFromBuild\u003etrue/false\u003c/filterExcludedArtifactsFromBuild\u003e\n    \u003c!-- If true build information published to Artifactory will include implicit project as well as build-time dependencies --\u003e\n    \u003crecordAllDependencies\u003etrue/false\u003c/recordAllDependencies\u003e\n    \u003c!-- Minimum file size in KB for which the plugin performs checksum deploy optimization. Default: 10. Set to 0 to disable uploading files with checksum that already exists in Artifactory. --\u003e\n    \u003cminChecksumDeploySizeKb\u003e10\u003c/minChecksumDeploySizeKb\u003e\n  \u003c/publisher\u003e\n  \u003cproxy\u003e\n    \u003chost\u003eproxy.jfrog.io\u003c/host\u003e\n    \u003cport\u003e8888\u003c/port\u003e\n    \u003cusername\u003eproxyUser\u003c/username\u003e\n    \u003cpassword\u003eproxyPassword\u003c/password\u003e\n  \u003c/proxy\u003e\n\u003c/configuration\u003e\n```\n\n### Configuration Details\n\n|    Configuration     | Description                                                                                                                                                                                                                                              |\n|:--------------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `\u003cdeployProperties\u003e` | Specifies properties you can attach to published artifacts. For example: \u003cprope-key\u003eprop-value\u003c/prop-key\u003e.                                                                                                                                               |\n|   `\u003cartifactory\u003e`    | Specifies whether environment variables are published as part of BuildInfo metadata and which include or exclude patterns are applied when variables are collected                                                                                       |   \n|    `\u003cpublisher\u003e`     | Defines an Artifactory repository where build artifacts should be published using a combination of a `\u003ccontextUrl\u003e` and `\u003crepoKey\u003e/\u003csnapshotRepoKey\u003e`. Build artifacts are deployed if the deploy goal is executed and only after all modules are built. |   \n|    `\u003cbuildInfo\u003e`     | Updates BuildInfo metadata published together with build artifacts. You can configure whether or not BuildInfo metadata is published using the \u003cpublisher\u003e configuration.                                                                                |   \n|      `\u003cproxy\u003e`       | Specifies HTTP/S proxy.                                                                                                                                                                                                                                  |   \n\n### Reading Environment Variables and System Properties\n\nEvery build server provides its own set of environment variables. You can utilize these variables when configuring the\nplugin as shown in the following example:\n\n```xml\n\n\u003cconfiguration\u003e\n  \u003cpublisher\u003e\n    \u003ccontextUrl\u003e{{ARTIFACTORY_CONTEXT_URL|\"https://acme.jfrog.io\"}}\u003c/contextUrl\u003e\n  \u003c/publisher\u003e\n  \u003cbuildInfo\u003e\n    \u003cbuildNumber\u003e{{DRONE_BUILD_NUMBER|TRAVIS_BUILD_NUMBER|CI_BUILD_NUMBER|BUILD_NUMBER|\"333\"}}\u003c/buildNumber\u003e\n    \u003cbuildUrl\u003e{{DRONE_BUILD_URL|CI_BUILD_URL|BUILD_URL}}\u003c/buildUrl\u003e\n  \u003c/buildInfo\u003e\n\u003c/configuration\u003e\n```\n\nAny plugin configuration value can contain several {{ .. }} expressions. Each expression can contain a single or\nmultiple environment variables or system properties to be used.\nThe expression syntax allows you to provide enough variables to accommodate any build server requirements according to\nthe following rules:\n\n* Each expression can contain several variables, separated by a ' | ' character to be used with a configuration value.\n* The last value in a list is the default that will be used if none of the previous variables is available as an\n  environment variable or a system property.\n\nFor example, for the expression {{V1|V2|\"defaultValue\"}} the plugin will attempt to locate environment variable V1 ,\nthen system property V1, then environment variable or system property V2 , and if none of these is available,\n\"defaultValue\" will be used.\n\nIf the last value is not a string (as denoted by the quotation marks) and the variable cannot be resolved, null will be\nused (For example, for expression {{V1|V2}} where neither V1 nor V2 can be resolved).\n\n### Example\n\nThe following project provides a working example of using the plugin:\n[Maven Artifactory Plugin Example](https://github.com/JFrog/project-examples/tree/master/artifactory-maven-plugin-example).\n\n## 💻 Contributions\n\nWe welcome pull requests from the community. To help us improve this project, please read\nour [Contribution](./CONTRIBUTING.md#-guidelines) guide.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfrog%2Fartifactory-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfrog%2Fartifactory-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfrog%2Fartifactory-maven-plugin/lists"}