Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7689

NPE when calling dependency:analyze

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.0-alpha-4
    • 4.0.0-alpha-5, 4.0.0
    • Core
    • None
    • Linux, MacOS, Windows

    Description

      Hi,

      When using Maven 4.0.0-alpha4 and invoking dependency:analyze goal the NullPointerException is happening. I've created a simple reproducer: https://github.com/c00ler/maven-dependency-analyze-npe

      The exception is happening here. I assume, since analyze is a standalone goal, the lifecyclePhase is null in the event (see the attached screenshot). This is a recent change: https://github.com/apache/maven/commit/c1a900190f6e0fccf23889cb32f701459babfb7f, only 4.0.0-alpha4 is affected.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              avenderov Alexey Venderov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: