# Using the maven-publish plugin = no dependencies in pom.xml

**URL:** <https://discuss.gradle.org/t/using-the-maven-publish-plugin-no-dependencies-in-pom-xml/7599>\
**Category:** Old Forum Archive\
**Created:** [May 7, 2013, 10:59pm UTC](https://discuss.gradle.org/t/using-the-maven-publish-plugin-no-dependencies-in-pom-xml/7599 "2013-05-07T22:59:00Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)\
**Post date:** [March 23, 2015, 5:19pm UTC](https://discuss.gradle.org/t/using-the-maven-publish-plugin-no-dependencies-in-pom-xml/7599/38 "2015-03-23T17:19:00Z")

</div>

I’m developping gradle plugin and my build.gradle is like

```gradle
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'java-gradle-plugin'
publishing {
  publications {
    mavenJava(MavenPublication) {
      from components.java
    }
  }
}

```

when I run gradlew eclipse build publish… I correctly get all the gradleApi dependencies in my eclipse classpath, so they are correctly added in the compile configuration BUT when how can I add them in the generated maven POM ? Basically I’m using some guava classes in my plugin, and I’d like to add them in the generated jar.

---

_[View the full topic](https://discuss.gradle.org/t/using-the-maven-publish-plugin-no-dependencies-in-pom-xml/7599)._
