# Deploying to mavenLocal() and but unable to pull from maven local

**URL:** <https://discuss.gradle.org/t/deploying-to-mavenlocal-and-but-unable-to-pull-from-maven-local/22642>\
**Category:** Help/Discuss\
**Created:** [May 12, 2017, 7:07pm UTC](https://discuss.gradle.org/t/deploying-to-mavenlocal-and-but-unable-to-pull-from-maven-local/22642 "2017-05-12T19:07:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asolomon16](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/asolomon16/32/1727_2.png) [@asolomon16](https://discuss.gradle.org/u/asolomon16)\
**Post date:** [May 12, 2017, 7:07pm UTC](https://discuss.gradle.org/t/deploying-to-mavenlocal-and-but-unable-to-pull-from-maven-local/22642/1 "2017-05-12T19:07:59Z")

</div>

I have a gradle project which writes a snapshot artifact to a maven local repository “mavenLocal()”. This seems to work just fine. I also have another gradle script that uses this artifact as a dependency but fails to find it . Keep in mind i have mavenLocal() as my repository to search for the specific artifact.

- What went wrong:  
A problem occurred evaluating root project ‘app’.

> Could not resolve all dependencies for configuration ‘:myapp’.  
> Could not find com.asolomon.module:app:1.0.0.SNAPSHOT.  
> Searched in the following locations:  
> file:/Users/asolomon/.m2/repository/com/asolomon/module/app/1.0.0.SNAPSHOT/app/1.0.0.SNAPSHOT/app-1.0.0.SNAPSHOT.pom  
> file:/Users/asolomon/.m2/repository/com/asolomon/module/app/1.0.0.SNAPSHOT/app-1.0.0.SNAPSHOT.zip  
> Required by:  
> project :

This is what I have for the gradle code

configurations {  
myapp  
}

dependencies {  
myapp “com.asolomon.module:app:1.0.0.SNAPSHOT:@zip”  
}

task extractApp(type: Copy) {  
configurations.myapp.each { file →   
from zipTree(artifact)  
into “$buildDir/tmp”  
}  
}

---

<div class="post-metadata">

**Author:** ![rcordeau](https://avatars.discourse-cdn.com/v4/letter/r/b5a626/32.png) [@rcordeau](https://discuss.gradle.org/u/rcordeau)\
**Post date:** [June 7, 2017, 6:58pm UTC](https://discuss.gradle.org/t/deploying-to-mavenlocal-and-but-unable-to-pull-from-maven-local/22642/2 "2017-06-07T18:58:37Z")

</div>

I’m trying to do the same thing. Did you ever get a resolution on this?
