You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alexey Venderov (Jira)" <ji...@apache.org> on 2023/02/09 20:54:00 UTC

[jira] [Updated] (MNG-7689) NPE when calling dependency:analyze

     [ https://issues.apache.org/jira/browse/MNG-7689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Venderov updated MNG-7689:
---------------------------------
    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|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 (see the attached screenshot). This is a recent change: https://github.com/apache/maven/commit/c1a900190f6e0fccf23889cb32f701459babfb7f, only {{4.0.0-alpha4}} is affected.

  was:
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.


> 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
>            Priority: Minor
>         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 (see the attached screenshot). 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)