# uploadArchives to Apache Archiva does not upload pom-file

**URL:** https://discuss.gradle.org/t/uploadarchives-to-apache-archiva-does-not-upload-pom-file/5509
**Category:** Old Forum Archive
**Created:** [February 28, 2013, 5:05pm UTC](https://discuss.gradle.org/t/uploadarchives-to-apache-archiva-does-not-upload-pom-file/5509 "2013-02-28T17:05:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Emil\_Borik](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@Emil\_Borik](https://discuss.gradle.org/u/Emil_Borik)
#### Post date: [February 28, 2013, 5:05pm UTC](https://discuss.gradle.org/t/uploadarchives-to-apache-archiva-does-not-upload-pom-file/5509/1 "2013-02-28T17:05:00Z")

</div>

I have been trying since yesterday to solve this problem.

uploadArchives task gets only jar-files uploaded to Apache Archiva but not the pom-file!! pom/file exists (poms/pom-default.xml)

What am i doing wrong?!! Here the lines from build.gradle.

dependencies {

deployerJars ‘org.apache.maven.wagon:wagon-webdav-jackrabbit:2.2’

… } … uploadArchives {

repositories.mavenDeployer {

configuration = configurations.deployerJars

repository(url: “[http://repo-name:4711/path/to/repository/internal/](http://repo-name:4711/path/to/repository/internal/)”) {

authentication(userName: “xxxx”, password: “xxx”)

}

pom {

version = ‘1.0’

groupId = ‘com.group.foo’

packaging = ‘jar’

artifactId = ‘some-nice-artifact-name’

}

} }

I would really appreciate any help!!!

---

<div class="post-metadata">

### Author: ![daz](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/daz/32/2475_2.png) [@daz](https://discuss.gradle.org/u/daz)
#### Post date: [February 28, 2013, 10:39pm UTC](https://discuss.gradle.org/t/uploadarchives-to-apache-archiva-does-not-upload-pom-file/5509/2 "2013-02-28T22:39:00Z")

</div>

Try setting the group, version and artifactId on your project instead of on the ‘pom’. You should be able to do something like:

```gradle
group='com.group.foo'
version='1.0'
archivesBaseName='some-nice-artifact-name'

```

---

<div class="post-metadata">

### Author: ![Emil\_Borik](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@Emil\_Borik](https://discuss.gradle.org/u/Emil_Borik)
#### Post date: [March 1, 2013, 9:01am UTC](https://discuss.gradle.org/t/uploadarchives-to-apache-archiva-does-not-upload-pom-file/5509/3 "2013-03-01T09:01:00Z")

</div>

I’ve finally figured it out!! 😃

In build.gradle there was a “jar” configuration:

jar {

baseName ‘some-nice-name’

version ‘1.0’

classifiert ‘dev’ }

after I commented this out, it worked!!!

I have no idea why, but now i feel good. 🙂

@Daz DeBoer Thank you very much for your reply! It helped me not directly but it gave me a hint to the right direction.

@ Gradle Developer: Guys just keep on developing. I love gradle! 🙂

---

<div class="post-metadata">

### Author: ![Emil\_Borik](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@Emil\_Borik](https://discuss.gradle.org/u/Emil_Borik)
#### Post date: [March 1, 2013, 9:02am UTC](https://discuss.gradle.org/t/uploadarchives-to-apache-archiva-does-not-upload-pom-file/5509/4 "2013-03-01T09:02:00Z")

</div>

Now it works with pom as well!

pom {

version = ‘1.0’

groupId = ‘com.group.foo’

packaging = ‘jar’

artifactId = ‘some-nice-artifact-name’

}
