# How to upload Jar on Jenkins Artifactory in order to use that as a maven dependency in jenkins plugin development

**URL:** <https://community.jenkins.io/t/how-to-upload-jar-on-jenkins-artifactory-in-order-to-use-that-as-a-maven-dependency-in-jenkins-plugin-development/1824>\
**Category:** Code\
**Tags:** question\
**Created:** [March 17, 2022, 5:01am UTC](https://community.jenkins.io/t/how-to-upload-jar-on-jenkins-artifactory-in-order-to-use-that-as-a-maven-dependency-in-jenkins-plugin-development/1824 "2022-03-17T05:01:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayushk048](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ayushk048/32/1071_2.png) [@ayushk048](https://community.jenkins.io/u/ayushk048)\
**Post date:** [March 17, 2022, 5:01am UTC](https://community.jenkins.io/t/how-to-upload-jar-on-jenkins-artifactory-in-order-to-use-that-as-a-maven-dependency-in-jenkins-plugin-development/1824/1 "2022-03-17T05:01:23Z")

</div>

We are trying to use our SDK hosted on Github package. but according to this [document](https://www.theserverside.com/video/4-ways-to-upload-a-JAR-to-a-JFrog-Artifactory-repository#:~:text=1.,JAR%20onto%20the%20deployment%20screen.) we can upload our SDK jar in Jenkins Artifactory and that can be use in our Jenkins plugin code as a dependency. Is it possible ?

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 17, 2022, 7:34am UTC](https://community.jenkins.io/t/how-to-upload-jar-on-jenkins-artifactory-in-order-to-use-that-as-a-maven-dependency-in-jenkins-plugin-development/1824/2 "2022-03-17T07:34:02Z")

</div>

Sorry I moved this thread to the wrong category too early. I moved it back.

GitHub maven repo currently doesn’t support anonymous access. So while you can update your pom file to use that repository it’s likely to get flagged as unable to be built when security teams so thier audits.

This only applies to plugins on the public update center. If your writing your own plugin this doesn’t apply. Then it’s just basic maven config.

Since you didn’t provide any context such as plugin oe repo names or error messages all we can do is guess

---

<div class="post-metadata">

**Author:** ![ayushk048](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ayushk048/32/1071_2.png) [@ayushk048](https://community.jenkins.io/u/ayushk048)\
**Post date:** [March 17, 2022, 12:28pm UTC](https://community.jenkins.io/t/how-to-upload-jar-on-jenkins-artifactory-in-order-to-use-that-as-a-maven-dependency-in-jenkins-plugin-development/1824/3 "2022-03-17T12:28:05Z")

</div>

@halkeye Thank you for your response,

We are creating jenkins plugin for pipeline tracking, we have to use our SDK as a dependency in the plugin. Our SDK is hosted on Github packages. but seems like the Github maven repo does not support anonymous access.

So, we have to find another way to host our SDK artifact on Jenkins artifactory but we haven’t found any way to deploy that SDK on jenkins artifactory in order to use it in our plugin code as a dependency.

Hope you understand the actual point.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 17, 2022, 4:39pm UTC](https://community.jenkins.io/t/how-to-upload-jar-on-jenkins-artifactory-in-order-to-use-that-as-a-maven-dependency-in-jenkins-plugin-development/1824/4 "2022-03-17T16:39:40Z")

</div>

> [@ayushk048](#):
>
> So, we have to find another way to host our SDK artifact on Jenkins artifactory but we haven’t found any way to deploy that SDK on jenkins artifactory in order to use it in our plugin code as a dependency.

Your options are use a public repository like maven central, or PR to [GitHub - jenkins-infra/repository-permissions-updater: Artifactory permissions synchronization tool and data set](https://github.com/jenkins-infra/repository-permissions-updater) to allow more things uploaded by your account.
