[ https://issues.apache.org/jira/browse/MDEP-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rostislav Krasny updated MDEP-875: ---------------------------------- Description: Running the {{mvn org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories}} command on a projects that has no repository with mirror or only repositories with mirrors fails with an NPE like in the following example: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories (default-cli) on project d emo: Execution default-cli of goal org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories failed: Cannot invoke "java.util.Collection.forEach(java.util.function.Consumer)" because "remoteProjectRepositories" is null -> [Help 1] The "project demo" is a simple default project made by https://start.spring.io/ This regression was introduced by fix of MDEP-853 and exists only in the {{3.6.0}} version of the plugin. was: Running the {{mvn org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories}} command on a projects that has no repository with mirror or only repositories with mirrors fails with an NPE like in the following example: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories (default-cli) on project d emo: Execution default-cli of goal org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories failed: Cannot invoke "java.util.Collection.forEach(java.util.function.Consumer)" because "remoteProjectRepositories" is null -> [Help 1] This regression was introduced by fix of MDEP-853 and exists only in the {{3.6.0}} version of the plugin. > Regression: list-repositories may produce NPE > --------------------------------------------- > > Key: MDEP-875 > URL: https://issues.apache.org/jira/browse/MDEP-875 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: list-repositories > Affects Versions: 3.6.0 > Reporter: Rostislav Krasny > Priority: Major > > Running the {{mvn > org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories}} > command on a projects that has no repository with mirror or only repositories > with mirrors fails with an NPE like in the following example: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories > (default-cli) on project d > emo: Execution default-cli of goal > org.apache.maven.plugins:maven-dependency-plugin:3.6.0:list-repositories > failed: Cannot invoke > "java.util.Collection.forEach(java.util.function.Consumer)" because > "remoteProjectRepositories" is null -> [Help 1] > The "project demo" is a simple default project made by > https://start.spring.io/ > This regression was introduced by fix of MDEP-853 and exists only in the > {{3.6.0}} version of the plugin. -- This message was sent by Atlassian Jira (v8.20.10#820010)