# Common repository

**URL:** <https://discuss.circleci.com/t/common-repository/1450>\
**Category:** Build Environment\
**Created:** [January 11, 2016, 1:21pm UTC](https://discuss.circleci.com/t/common-repository/1450 "2016-01-11T13:21:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bemer](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bemer](https://discuss.circleci.com/u/bemer)\
**Post date:** [January 11, 2016, 1:21pm UTC](https://discuss.circleci.com/t/common-repository/1450/1 "2016-01-11T13:21:46Z")

</div>

Hello there! I an new to cicleCI and i’m trying to get this working in my environment. Today I have two git projects (lets call them project A and project B). Both projects are java projects and uses maven, but to generate the project B build, I need some things from project A - something like common libraries. This is the error that I got:

> [INFO] ------------------------------------------------------------------------  
> [INFO] BUILD FAILURE  
> [INFO] ------------------------------------------------------------------------  
> [INFO] Total time: 12.831 s  
> [INFO] Finished at: 2016-01-08T17:28:51+00:00  
> [INFO] Final Memory: 26M/1963M  
> [INFO] ------------------------------------------------------------------------  
> [ERROR] Failed to execute goal on project widget: Could not resolve dependencies for project [br.com](http://br.com):widget:war:1.0-SNAPSHOT: The following artifacts could not be resolved: br.com.common:common-restful:jar:1.0-SNAPSHOT, br.com.common:common-project:jar:1.0-SNAPSHOT: Could not find artifact br.com.common:common-restful:jar:1.0-SNAPSHOT → [Help 1]  
> [ERROR]  
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.  
> [ERROR]  
> [ERROR] For more information about the errors and possible solutions, please read the following articles:  
> [ERROR] [Help 1] [DependencyResolutionException - Apache Maven - Apache Software Foundation](http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException)

I know this error in my local environment and I know that to get this working, I need to clone another git repository and run the command “mvn clean install eclipse:clean eclipse:eclipse -P desenv -Dmaven.test.skip=true”, but I don’t know how to get this working on circleCI.

Can someone help me with this?

Thanks!

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [January 11, 2016, 3:25pm UTC](https://discuss.circleci.com/t/common-repository/1450/2 "2016-01-11T15:25:05Z")

</div>

You can totally clone the repo on CircleCI as well. We pre-install the full-fledged git command-line client, so `git clone` should do it.

However, if the project you are trying to clone is private, you’ll need to add another SSH key to CircleCI and GitHub. There are more details around this in [this doc](http://circleci.com/docs/github-security-ssh-keys).

---

<div class="post-metadata">

**Author:** ![bemer](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bemer](https://discuss.circleci.com/u/bemer)\
**Post date:** [January 11, 2016, 3:26pm UTC](https://discuss.circleci.com/t/common-repository/1450/3 "2016-01-11T15:26:44Z")

</div>

Great!!!

Thanks, alexey! I will try this and then I put the results here, ok?

---

<div class="post-metadata">

**Author:** ![alexey](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexey/32/42_2.png) [@alexey](https://discuss.circleci.com/u/alexey)\
**Post date:** [January 11, 2016, 3:29pm UTC](https://discuss.circleci.com/t/common-repository/1450/4 "2016-01-11T15:29:43Z")

</div>

Absolutely, will be happy to help you out if you have any other questions.

---

<div class="post-metadata">

**Author:** ![bemer](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bemer](https://discuss.circleci.com/u/bemer)\
**Post date:** [January 11, 2016, 3:48pm UTC](https://discuss.circleci.com/t/common-repository/1450/5 "2016-01-11T15:48:53Z")

</div>

Hello alexey!  
I was able to generate the build now! I just put the ssh key there (as described in the document) and run the commands git clone and mvn as needed!

Thanks for your help in this case!!!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/common-repository/1450/6 "2018-06-18T11:37:54Z")

</div>


