Maven Project Info Reports Plugin
  1. Maven Project Info Reports Plugin
  2. MPIR-238

Dependency File Details section of the dependencies report shows 'target/classes' for reactor artifacts.

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: dependency-info
    • Labels:
      None
    • Number of attachments :
      3

      Description

      Generating the dependencies report in a multi-module project leads to incorrect entries in the 'Dependency File Details' section of the dependencies report. For example, the Maven Release Plugin Dependency File Details report contains the following entry:

      Filename Size Entries Classes Packages JDK Rev Debug
      maven-release-manager/target/classes - 0 0 0 - release

      Building the site of a single module ('mvn site' in that modules directory), the correct entries are shown.

      1. MPIR-238.patch
        0.5 kB
        Christian Schulte
      2. MPIR-238-ReactorReader.patch
        2 kB
        Christian Schulte
      3. MPIR-238-ReactorReader.patch
        2 kB
        Christian Schulte

        Activity

        Hide
        Christian Schulte added a comment - - edited

        The cause is class 'org.apache.maven.ReactorReader' falling back to returning directories when the 'compile' phase has completed which is the case for various report plugins marked '@execute phase="generate-test-sources"'. MPIR-238.patch contains a patch for the dependencies report adding '@execute phase="package"' to make the reactor reader stop returning directories. MPIR-238-ReactorReader.patch contains a patch for that class to not resolve to directories when not executing the default lifecycle.

        Show
        Christian Schulte added a comment - - edited The cause is class 'org.apache.maven.ReactorReader' falling back to returning directories when the 'compile' phase has completed which is the case for various report plugins marked '@execute phase="generate-test-sources"'. MPIR-238 .patch contains a patch for the dependencies report adding '@execute phase="package"' to make the reactor reader stop returning directories. MPIR-238 -ReactorReader.patch contains a patch for that class to not resolve to directories when not executing the default lifecycle.
        Hide
        Christian Schulte added a comment -

        This also affects the 'Dependency Repository Locations' report, which does not link to snapshot repositories in such situations.

        Show
        Christian Schulte added a comment - This also affects the 'Dependency Repository Locations' report, which does not link to snapshot repositories in such situations.
        Hide
        Christian Schulte added a comment -

        Updated patch to test for the 'pre-clean' phase instead of 'clean'.

        Show
        Christian Schulte added a comment - Updated patch to test for the 'pre-clean' phase instead of 'clean'.

          People

          • Assignee:
            Unassigned
            Reporter:
            Christian Schulte
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: