mulesoft-catalyst / mule-sonarqube-plugin

The Mule SonarQube Plugin provides the capability to do code inspecting and taking project metrics from a mule project using SonarQube.
The Unlicense
46 stars 68 forks source link

Use javax.xml.xpath.* instead of org.jdom2.* #23

Open ca-stefan-cordes opened 3 years ago

ca-stefan-cordes commented 3 years ago

Currently the org.jdom2. is used for xpath and xml document handling but the <artifactId>sonar-xml-parsing</artifactId> which has some nice features for xml file line location handling (see #15 ) the jdom2 should be removed and replaced by javax.xml.

abhayagarwalonline commented 3 years ago

Hello

I want to try javax.xml library. Please let me know the version of javax.xml we need to use. maven coordinates ?

Thanks Abhay Agarwal Mulesoft Technical Architect

ca-stefan-cordes commented 3 years ago

Hi Abhay, the javax.xml.* is bundled with the jre. The implementation used should best be the one used by sonar:

image

which comes transient from

        <dependency>
            <groupId>org.sonarsource.analyzer-commons</groupId>
             <artifactId>sonar-xml-parsing</artifactId>
             <version>1.12.0.632</version>
        </dependency>

which already is in the pom.xml since #15