Hello, Maven Experts here.
As the subject said, how to exclude artifacts inherited from a parent POM ? Why did I ask this question as I used mvn dependency:analyze to find which dependency is unnecessary. And I found the following. All of them from the parent pom. And I can not exclude them like a normal way. Does anyone improve my mind here ? Thanks in advance. Unused declared dependencies found: [WARNING] org.apache.flink:force-shading:jar:1.4-SNAPSHOT:compile [WARNING] org.powermock:powermock-module-junit4:jar:1.6.5:test [WARNING] com.google.code.findbugs:jsr305:jar:1.3.9:compile [WARNING] log4j:log4j:jar:1.2.17:test [WARNING] org.powermock:powermock-api-mockito:jar:1.6.5:test [WARNING] org.slf4j:slf4j-log4j12:jar:1.7.7:test Cheers Rice