When you configure the maven-dependency-plugin within the <pluginManagement>
section, maven will do nothing with it. Your <pluginManagement>
section does only define how the maven-dependency-plugin will be configured in case it is invoked. To actually invoke the plugin during the packaging phase, you need to define the invocation in the <plugins>
section.
So you can either move the whole plugin configuration from <pluginManamgement>
to <plugins>
or you can additionally define the maven-dependency-plugin without version and configuration in the <plugins>
section:
<build>
<plugins>
<!-- no need for version or configuration since both are defined in pluginManagement -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
...
</plugins>
...
</build>