# Uploading a jar and Automatically Creating a pom File

**URL:** <https://community.sonatype.com/t/uploading-a-jar-and-automatically-creating-a-pom-file/8417>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository, api, upload\
**Created:** [March 24, 2022, 5:25pm UTC](https://community.sonatype.com/t/uploading-a-jar-and-automatically-creating-a-pom-file/8417 "2022-03-24T17:25:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepi.nag](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@deepi.nag](https://community.sonatype.com/u/deepi.nag)\
**Post date:** [March 24, 2022, 5:25pm UTC](https://community.sonatype.com/t/uploading-a-jar-and-automatically-creating-a-pom-file/8417/1 "2022-03-24T17:25:07Z")

</div>

Hi,  
Is it possible to pass any other file other than jar to create a pom using the curl command  
curl -v -u admin:admin123 -F “maven2.generate-pom=true” -F “maven2.groupId=com.example” -F “maven2.artifactId=commercial-product” -F “maven2.packaging=jar” -F “version=1.0.0” -F “maven2.asset1=@/absolute/path/to/the/local/file/product.jar;type=application/java-archive” -F “maven2.asset1.extension=jar” “[http://localhost:8081/service/rest/v1/components?repository=maven-third-party](http://localhost:8081/service/rest/v1/components?repository=maven-third-party)”
