[ 
https://issues.apache.org/jira/browse/MDEP-968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906104#comment-17906104
 ] 

Hack Kampbjørn commented on MDEP-968:
-------------------------------------

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

{{{{ }}}}
{code:java}
<dependencyManagement>
</dependencyManagement> {code}
 

 

> analyze-exclusions crashes on POM project
> -----------------------------------------
>
>                 Key: MDEP-968
>                 URL: https://issues.apache.org/jira/browse/MDEP-968
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>            Reporter: Jakub Bochenski
>            Priority: Major
>
> ```
> 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
> ```
> Makes it impossible to use this rule in multimodule project unless you use 
> some hacks to disable it in parent only.



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

Reply via email to