# 3rd party jars need custom pom

**URL:** <https://community.sonatype.com/t/3rd-party-jars-need-custom-pom/1347>\
**Category:** Sonatype Nexus Repository\
**Created:** [February 22, 2019, 7:12pm UTC](https://community.sonatype.com/t/3rd-party-jars-need-custom-pom/1347 "2019-02-22T19:12:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dale.preston](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dale.preston](https://community.sonatype.com/u/dale.preston)\
**Post date:** [February 22, 2019, 7:12pm UTC](https://community.sonatype.com/t/3rd-party-jars-need-custom-pom/1347/1 "2019-02-22T19:12:58Z")

</div>

When I upload a third-party jar file to my hosted maven repo, I have the option to have Nexus create the pom for the jar file. The problem is, I need to edit/customize that pom. I need all of the dependencies listed in that pom so I don’t have to add their dependencies to my project’s pom. First, will that work? Haven’t tried it yet because I can’t figure a way to edit the pom. I might try by editing the pom in my local .m2 repo but that still won’t let me customize the pom stored in the Nexus repo.

I didn’t see a way to upload my own custom pom when adding the components, either. What’s the best way to handle this?

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [February 22, 2019, 7:26pm UTC](https://community.sonatype.com/t/3rd-party-jars-need-custom-pom/1347/2 "2019-02-22T19:26:18Z")

</div>

Use the deploy:deploy-file goal in Maven to deploy the jar and custom pom file:

[https://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-customed-pom.html](https://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-customed-pom.html)

---

<div class="post-metadata">

**Author:** ![dale.preston](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dale.preston](https://community.sonatype.com/u/dale.preston)\
**Post date:** [February 22, 2019, 7:27pm UTC](https://community.sonatype.com/t/3rd-party-jars-need-custom-pom/1347/3 "2019-02-22T19:27:07Z")

</div>

Thanks! I’ll do that.
