maven-dependency-plugin
maven-dependency-plugin copied to clipboard
[MDEP-968] analyze-exclusions crashes if there is no dependencyManagement element
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
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>