• Icon: Task Task
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • pmd-plugin
    • None
    • Jenkins 1.585
      PMD Plugin:3.38

      I have created multiple pmd.xml under different folders.
      Eg.
      core/pmd.xml
      services/pmd.xml
      apps/pmd.xml

      Can I show each one as a module in the PMD Report

          [JENKINS-27828] Module Detection

          Prasad Nair added a comment -

          RE-opening as it looks like a bug

          Prasad Nair added a comment - RE-opening as it looks like a bug

          Ulli Hafner added a comment -

          Did you activate the checkbox 'scan for modules'?

          Ulli Hafner added a comment - Did you activate the checkbox 'scan for modules'?

          Prasad Nair added a comment - - edited

          Yes. After that only, modules started appearing in the report. In the attachment 'payment-service' is actually the name of the project in trunk/pom.xml. But its not identifying the other poms. All others are coming under 'Default'

          Prasad Nair added a comment - - edited Yes. After that only, modules started appearing in the report. In the attachment 'payment-service' is actually the name of the project in trunk/pom.xml. But its not identifying the other poms. All others are coming under 'Default'

          Prasad Nair added a comment -

          Found the problem. Browsed through the source code and found that ModuleDetector was looking for the name tag which I didn't add. I added the name tag and modules started detecting. It would be nice you look for artifactId also as name is not mandatory in pom. Anyways thanks. This is very nice plugin.

          Prasad Nair added a comment - Found the problem. Browsed through the source code and found that ModuleDetector was looking for the name tag which I didn't add. I added the name tag and modules started detecting. It would be nice you look for artifactId also as name is not mandatory in pom. Anyways thanks. This is very nice plugin.

          Prasad Nair added a comment -

          Not an issue. If name is included in pom, it works

          Prasad Nair added a comment - Not an issue. If name is included in pom, it works

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/analysis/util/ModuleDetector.java
          src/test/java/hudson/plugins/analysis/util/ModuleDetectorTest.java
          src/test/resources/hudson/plugins/analysis/util/no-name-pom.xml
          http://jenkins-ci.org/commit/analysis-core-plugin/e7a42b2e48ec27fa0eb4d7d4f743a6f20fd8aaa1
          Log:
          [FIXED JENKINS-27828] Use artifact ID as module name if pom defines no name.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/analysis/util/ModuleDetector.java src/test/java/hudson/plugins/analysis/util/ModuleDetectorTest.java src/test/resources/hudson/plugins/analysis/util/no-name-pom.xml http://jenkins-ci.org/commit/analysis-core-plugin/e7a42b2e48ec27fa0eb4d7d4f743a6f20fd8aaa1 Log: [FIXED JENKINS-27828] Use artifact ID as module name if pom defines no name.

          Ulli Hafner added a comment -

          Thanks for checking that. I thought that the ID is used as fallback but seems that I missed that part up to now...

          Ulli Hafner added a comment - Thanks for checking that. I thought that the ID is used as fallback but seems that I missed that part up to now...

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          checkstyle.iml
          createCommitCvs.pl
          createCvs.pl
          http://jenkins-ci.org/commit/checkstyle-plugin/d21abc0bd61dd6823e2d51c2533f35b1a1b426a8
          Log:
          [FIXED JENKINS-27828] Use artifact ID as module name if pom defines no name.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: checkstyle.iml createCommitCvs.pl createCvs.pl http://jenkins-ci.org/commit/checkstyle-plugin/d21abc0bd61dd6823e2d51c2533f35b1a1b426a8 Log: [FIXED JENKINS-27828] Use artifact ID as module name if pom defines no name.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          analysis-test
          warnings
          http://jenkins-ci.org/commit/analysis-suite-plugin/f2392d54b8f8ac773771310fd4914898cc0295a5
          Log:
          [FIXED JENKINS-27828] Use artifact ID as module name if pom defines no name.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: analysis-test warnings http://jenkins-ci.org/commit/analysis-suite-plugin/f2392d54b8f8ac773771310fd4914898cc0295a5 Log: [FIXED JENKINS-27828] Use artifact ID as module name if pom defines no name.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          analysis-core
          http://jenkins-ci.org/commit/analysis-suite-plugin/8cdecddec3c975fc172a2026b6a40f205e97c9a2
          Log:
          [FIXED JENKINS-27828] Use artifact ID as module name if pom defines no name.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: analysis-core http://jenkins-ci.org/commit/analysis-suite-plugin/8cdecddec3c975fc172a2026b6a40f205e97c9a2 Log: [FIXED JENKINS-27828] Use artifact ID as module name if pom defines no name.

            drulli Ulli Hafner
            prasadpnair Prasad Nair
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: