Alexey Venderov created MNG-7689:
------------------------------------

             Summary: NPE when calling dependency:analyze
                 Key: MNG-7689
                 URL: https://issues.apache.org/jira/browse/MNG-7689
             Project: Maven
          Issue Type: Bug
          Components: Core
    Affects Versions: 4.0.0-alpha-4
         Environment: Linux, MacOS, Windows
            Reporter: Alexey Venderov
         Attachments: Screenshot 2023-02-09 at 21.33.02.png

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|https://github.com/apache/maven/blob/7b38457506544854cdd26aa1d49608050217b923/maven-core/src/main/java/org/apache/maven/ReactorReader.java#L323].
 I assume, since {{analyze}} is a standalone goal, the {{lifecyclePhase}} is 
{{null}} in the event. This is a recent change: 
https://github.com/apache/maven/commit/c1a900190f6e0fccf23889cb32f701459babfb7f,
 only {{4.0.0-alpha4}} is affected.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to