merge-cpd-pmd-report-maven-plugin

A manven plugin to merge cpd report(cpd.xml) into pmd report(pmd.xml)

License

License

Categories

Categories

Maven Build Tools PMD Application Testing & Monitoring Code Analysis
GroupId

GroupId

com.github.meixuesong
ArtifactId

ArtifactId

merge-cpd-pmd-report-maven-plugin
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

merge-cpd-pmd-report-maven-plugin
A manven plugin to merge cpd report(cpd.xml) into pmd report(pmd.xml)
Project URL

Project URL

https://github.com/meixuesong/merge-cpd-pmd-report-maven-plugin.git
Source Code Management

Source Code Management

https://github.com/meixuesong/merge-cpd-pmd-report-maven-plugin/tree/master

Download merge-cpd-pmd-report-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.meixuesong</groupId>
    <artifactId>merge-cpd-pmd-report-maven-plugin</artifactId>
    <version>1.0.1</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
org.codehaus.plexus : plexus-utils jar 3.0.8
sax : sax jar 2.0.1

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

merge-cpd-pmd-report-maven-plugin

A maven plugin, it merges cpd.xml(duplicate code report) into pmd.xml(pmd report), so that sonarqube can display cpd report.

Sample usage:

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>3.13.0</version>
                <configuration>
                    <rulesets>
                        <ruleset>${project.basedir}/src/main/resources/pmd.xml</ruleset>
                    </rulesets>
                    <minimumTokens>30</minimumTokens>
                    <ignoreLiterals>true</ignoreLiterals>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.github.meixuesong</groupId>
                <artifactId>merge-cpd-pmd-report-maven-plugin</artifactId>
                <version>1.0</version>
            </plugin>
        </plugins>
    </reporting>

Sonar:

mvn clean verify site com.github.meixuesong:merge-cpd-pmd-report-maven-plugin:1.0:merge sonar:sonar

Versions

Version
1.0.1
1.0