Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-428

maven-dependency-analyzer does not detect method references

    Details

      Description

      maven-dependency-analyzer doesn't seem to pick up on method reference usages. When using the maven-dependency-plugin, if the only usage of a dependency is via a method reference, this causes erroneous unused dependency errors that fail our build.

      I updated the maven-dependency-analyzer tests to fail and pushed it to our fork:
      https://github.com/HubSpot/maven-shared/commit/d5ffacb808fba01837c644f2045a79eab50fecbf
      Changing from a method reference to a lambda or anonymous class makes the test pass again.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krosenvold Kristian Rosenvold
                Reporter:
                jhaber Jonathan Haber
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: