# Java maven scanner does ignores everything but java

**URL:** <https://community.sonarsource.com/t/java-maven-scanner-does-ignores-everything-but-java/134177>\
**Category:** SonarQube Server / Community Build\
**Created:** [January 29, 2025, 6:48am UTC](https://community.sonarsource.com/t/java-maven-scanner-does-ignores-everything-but-java/134177 "2025-01-29T06:48:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomOne](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@randomOne](https://community.sonarsource.com/u/randomOne)\
**Post date:** [January 29, 2025, 6:48am UTC](https://community.sonarsource.com/t/java-maven-scanner-does-ignores-everything-but-java/134177/1 "2025-01-29T06:48:36Z")

</div>

Hi,  
I’m using SQ: v10.8.1 Developer and have many Java projects however in every repo there is more than just the java code e.g. Dockerfile, helm charts. SQ supports analyzing them but only when we run the analysis with the sonar-scanner cli however the recommendation is to use the maven plugin.

There is a observable difference in the results between the generic scanner and the maven plugin but at the same time the maven scanner ignores everything apart from java. Also the generic scanner is hard to scale granted I have to specify `sonar.java.*` args that could different from repo to repo but at the same time it is not scalable to do it everywhere.

- Is there any other way to run the maven-scanner AND activate analysis for other “languages” (Docker, K8s) at the same time?
- Are there plans to add support to the maven plugin to detect other scanners as well, for example the “JavaScript/TypeScript/CSS” does that and it works well.

it feels like SQ can do so much but not for java projects.

Regards

---

<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:** [January 30, 2025, 2:00pm UTC](https://community.sonarsource.com/t/java-maven-scanner-does-ignores-everything-but-java/134177/2 "2025-01-30T14:00:41Z")

</div>

Hi,

I’m so glad you asked. 😃

We somewhat recently added the `sonar.maven.scanAll` property. Set it to true and you’ll pick up the other languages.

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![randomOne](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@randomOne](https://community.sonarsource.com/u/randomOne)\
**Post date:** [January 30, 2025, 2:30pm UTC](https://community.sonarsource.com/t/java-maven-scanner-does-ignores-everything-but-java/134177/3 "2025-01-30T14:30:50Z")

</div>

Hi Ann,  
sounds great! I`ll give it a try and come back to you.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [February 6, 2025, 2:31pm UTC](https://community.sonarsource.com/t/java-maven-scanner-does-ignores-everything-but-java/134177/4 "2025-02-06T14:31:22Z")

</div>

Closed on February 6, 2025, 2:31pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
