Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.10
-
None
-
Patch, Important
Description
The issue is the same as in MDEP-448 but on the unpack-dependencies goal.
It can be resolved by applying the same patch also to the file: org.apache.maven.plugin.dependency.fromDependencies.UnpackDependenciesMojo.java line 98
Note that the problem is the logging when markers are present. To produce a test simply run the configuration below using any dependency with javadocs attachments. The first run is okay the second run fails with NullPointerException from
org.apache.maven.plugin.dependency.fromDependencies.UnpackDependenciesMojo.java line 98
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>unpack-javadoc</id>
<phase>initialize</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<overWriteIfNewer>false</overWriteIfNewer>
<classifier>javadoc</classifier>
<markersDirectory>${project.build.directory}/mdep-markers</markersDirectory>
</configuration>
</execution>
</executions>
</plugin>