Sonar - Two modules have the same id: ''. Each module must have a unique id. Error

284 views
Skip to first unread message

svattaky...@lyonscg.com

unread,
Mar 6, 2018, 6:03:33 PM3/6/18
to SonarQube
Why do I keep getting this error when trying to run sonar via ant - Two modules have the same id: ''. Each module must have a unique id.

I am on sonarqube 7.0 and java 8. I have gone through all settings and I just dont know why this error keeps popping up when I run 'ant sonar' as my command

[sonar:sonar] Apache Ant(TM) version 1.9.3 compiled on April 8 2014
[sonar:sonar] SonarQube Ant Task version: 2.5
[sonar:sonar] Loaded from: file:/usr/share/ant/lib/sonarqube-ant-task-2.5.jar
[sonar:sonar] User cache: /home/.sonar/cache
[sonar:sonar] SLF4J: Class path contains multiple SLF4J bindings.
[sonar:sonar] SLF4J: Found binding in [jar:file:/home/.sonar/cache/66049c6958872fd6ceed2035f213a9ae/sonar-plugin-api-deps.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[sonar:sonar] SLF4J: Found binding in [jar:file:/home/.sonar/cache/826fe2e423aa6b6e7a797b6f2722c7ac/sonar-scanner-engine-shaded-7.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[sonar:sonar] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[sonar:sonar] SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
[sonar:sonar] Publish mode
[sonar:sonar] Load global settings
[sonar:sonar] Load global settings (done) | time=119ms
[sonar:sonar] Server id: AWH33petlhztxaryDbQp
[sonar:sonar] User cache: /home/.sonar/cache
[sonar:sonar] Load plugins index
[sonar:sonar] Load plugins index (done) | time=106ms
[sonar:sonar] Load/download plugins
[sonar:sonar] Load/download plugins (done) | time=26ms
[sonar:sonar] Default locale: "en_US", source code encoding: "UTF-8"
[sonar:sonar] Process project properties

BUILD FAILED
/opt/hybris-commerce/hybris-suite/hybris/bin/platform/build.xml:82: The following error occurred while executing this line:
/opt/hybris-commerce/hybris-suite/hybris/bin/platform/resources/ant/sonar.xml:89: Two modules have the same id: ''. Each module must have a unique id.

G. Ann Campbell

unread,
Mar 7, 2018, 11:50:53 AM3/7/18
to SonarQube
Hi,

This appears to be a cross-post with StackOverflow. Please don't do that. 


:-)
Ann

svattaky...@lyonscg.com

unread,
Mar 7, 2018, 12:04:01 PM3/7/18
to SonarQube
I am sorry. I am posting for the first time. Did not know. My bad
Reply all
Reply to author
Forward
0 new messages