maven-dependency-plugin icon indicating copy to clipboard operation
maven-dependency-plugin copied to clipboard

[MDEP-968] analyze-exclusions crashes if there is no dependencyManagement element

Open jira-importer opened this issue 1 year ago • 1 comments

Jakub Bochenski opened MDEP-968 and commented

Execution analyze-exclusions of goal org.apache.maven.plugins:maven-dependency-plugin:3.8.1:analyze-exclusions failed: Cannot invoke "org.apache.maven.model.DependencyManagement.getDependencies()" because the return value of "org.apache.maven.project.MavenProject.getDependencyManagement()" is null

No further details from MDEP-968

jira-importer avatar Nov 22 '24 19:11 jira-importer

Hack Kampbjørn commented

In my case, this did not affect pom packaging used in parent modules, but only jar packaging child modules without any dependency management.

 

My workaround is to add an empty dependency management tag like

{{ }}

<dependencyManagement>
</dependencyManagement> 

 

 

jira-importer avatar Dec 16 '24 16:12 jira-importer