-
Bug
-
Resolution: Done
-
Major
-
39.0.0.Beta1
-
None
Problem
During CI Maven builds, the following warning is logged:
[WARNING] The artifact org.codehaus.mojo:sonar-maven-plugin:jar:3.7.0.1746 has been relocated to org.sonarsource.scanner.maven:sonar-maven-plugin:jar:3.7.0.1746: SonarQube plugin was moved to SonarSource organisation
This warning causes test failures in quickstarts CI when log validation checks for unexpected warnings.
Affected quickstarts:
- ejb-throws-exception
- ha-singleton-deployment
- http-custom-mechanism
- jta-crash-rec
- security-domain-to-domain
Root Cause
The wildfly-quickstart-parent:10 inherits from jboss-parent:43, which defines the sonar-maven-plugin with the deprecated groupId:
[groupId]org.codehaus.mojo[/groupId] [artifactId]sonar-maven-plugin[/artifactId] [version]3.7.0.1746[/version]
The SonarQube project moved the plugin to org.sonarsource.scanner.maven groupId, and Maven emits a relocation warning when resolving the old coordinates.
Proposed Solution
Upgrade wildfly-quickstart-parent to use jboss-parent:46 or newer, which contains the fix "Sonar was relocated by @dmlloyd".
See: https://github.com/jboss/jboss-parent-pom/releases/tag/jboss-parent-46
Affected Files
- wildfly-quickstart-parent/pom.xml - update parent version from 43 to 46+
Impact
- Eliminates harmless but noisy warnings during CI builds
- Fixes test failures caused by unexpected warning detection
- No functional impact on Maven builds
References
- GitHub jboss-parent changelog: https://github.com/jboss/jboss-parent-pom/compare/jboss-parent-43...jboss-parent-46
- WildFly already upgraded to jboss-parent:51 in
WFLY-21123