# POM dependencies not being resolved by Gradle

**URL:** <https://discuss.gradle.org/t/pom-dependencies-not-being-resolved-by-gradle/24051>\
**Category:** Help/Discuss\
**Created:** [September 12, 2017, 9:13pm UTC](https://discuss.gradle.org/t/pom-dependencies-not-being-resolved-by-gradle/24051 "2017-09-12T21:13:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![omaflak](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@omaflak](https://discuss.gradle.org/u/omaflak)\
**Post date:** [September 12, 2017, 9:13pm UTC](https://discuss.gradle.org/t/pom-dependencies-not-being-resolved-by-gradle/24051/1 "2017-09-12T21:13:58Z")

</div>

Hi, my name is Omar. I am encountering a problem when including my published Android library in a new project. When I include the librray :

```gradle
implementation 'me.aflak.libraries:filter-annotation:1.0'
annotationProcessor 'me.aflak.libraries:filter-processor:1.0'

```

I get this error :

> NoClassDefFoundError: com/squareup/javapoet/TypeName

If I run `gradle dependencies`, I have these lines among the output :

> debugAnnotationProcessorClasspath - Resolved configuration for  
> annotation-processor for variant: debug  
> -– me.aflak.libraries:filter-processor:1.0

Which means that the dependencies in the [**processor.pom**](https://bintray.com/omaflak/maven/download_file?file_path=me%2Faflak%2Flibraries%2Ffilter-processor%2F1.0%2Ffilter-processor-1.0.pom) file are not being resolved by gradle. And especially the `JavaPoet` dependency.

But if you check the previous link, you can see that `JavaPoet` is indeed included in the pom file.

This is the **processor** build.gradle :

```gradle
apply plugin: 'java-library'

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation project(':filter-annotation')

    api 'com.squareup:javapoet:1.9.0'
    implementation 'com.google.code.gson:gson:2.8.1'
    implementation 'com.google.auto.service:auto-service:1.0-rc3'
}

```

This is the **annotation** build.gradle :

```gradle
apply plugin: 'java-library'

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    api 'com.google.code.gson:gson:2.8.1'
}

```

I’m a bit confused. Any help would be greatly appreciated ! Thanks!

---

<div class="post-metadata">

**Author:** ![omaflak](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@omaflak](https://discuss.gradle.org/u/omaflak)\
**Post date:** [September 13, 2017, 4:36pm UTC](https://discuss.gradle.org/t/pom-dependencies-not-being-resolved-by-gradle/24051/2 "2017-09-13T16:36:50Z")

</div>

Well… I only had to add `mavenLocal()` to the project repository.
