# Multiple repos in one project

**URL:** <https://community.sonarsource.com/t/multiple-repos-in-one-project/52190>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [October 27, 2021, 10:26am UTC](https://community.sonarsource.com/t/multiple-repos-in-one-project/52190 "2021-10-27T10:26:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatSQ](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@venkatSQ](https://community.sonarsource.com/u/venkatSQ)\
**Post date:** [October 27, 2021, 10:26am UTC](https://community.sonarsource.com/t/multiple-repos-in-one-project/52190/1 "2021-10-27T10:26:49Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this

In Azure i have multiple repo’s in one project. So while integrating with Sonarqube, do i need to create projects for each repo’s under portfolio? or do we have any best practice?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 27, 2021, 6:04pm UTC](https://community.sonarsource.com/t/multiple-repos-in-one-project/52190/2 "2021-10-27T18:04:44Z")

</div>

Hi,

When you say ‘repos’ I assume you mean SCM repos. If so, the answer is yes. Otherwise you’re not going to get accurate issue attribution / assignment, and it may also interfere with new code detection.

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![venkatSQ](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@venkatSQ](https://community.sonarsource.com/u/venkatSQ)\
**Post date:** [October 28, 2021, 7:39am UTC](https://community.sonarsource.com/t/multiple-repos-in-one-project/52190/3 "2021-10-28T07:39:28Z")

</div>

Thanks Ann, Yes they are SCM Repo’s

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 28, 2021, 1:21pm UTC](https://community.sonarsource.com/t/multiple-repos-in-one-project/52190/4 "2021-10-28T13:21:15Z")

</div>

Hi,

Then yes, you’ll need a SonarQube analysis/project per repo. You can stitch them back together with an [Application](https://docs.sonarqube.org/latest/user-guide/applications/), available starting in [Developer Edition](https://www.sonarqube.org/developer-edition/)($) if you like.

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![JanPesta](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@JanPesta](https://community.sonarsource.com/u/JanPesta)\
**Post date:** [November 4, 2024, 2:21pm UTC](https://community.sonarsource.com/t/multiple-repos-in-one-project/52190/5 "2024-11-04T14:21:51Z")

</div>

Hi, I have a problem with this approache.

I have two git repos, and I need to build them to gether (their can not be build separatelly).  
Those are osgi repos with multiple osgi bundles.

I am building them with tycho (pomless) which ends when executed without build to have missing src folders for analyzers - I do not know if there is some way to configure/fix this problem.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [November 4, 2024, 4:58pm UTC](https://community.sonarsource.com/t/multiple-repos-in-one-project/52190/6 "2024-11-04T16:58:18Z")

</div>

Hi @JanPesta,

Welcome to the community!

You’ve resurrected a thread that’s 3 years old. Per [the FAQ](https://community.sonarsource.com/faq), please don’t do that. Please create a new thread with all your details.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [November 4, 2024, 4:58pm UTC](https://community.sonarsource.com/t/multiple-repos-in-one-project/52190/7 "2024-11-04T16:58:24Z")

</div>


