Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-21327

Upgrade wildfly-quickstart-parent to jboss-parent 46+ to fix sonar-maven-plugin relocation warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 39.0.0.Final
    • 39.0.0.Beta1
    • Quickstarts
    • 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

              emartins@redhat.com Eduardo Martins
              rhn-support-kstekovi Krystof Stekovic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: