Ralf Mitschke created MDEP-483: ---------------------------------- Summary: NullPointerException when using classifier and markers Key: MDEP-483 URL: https://issues.apache.org/jira/browse/MDEP-483 Project: Maven Dependency Plugin Issue Type: Bug Components: unpack-dependencies Affects Versions: 2.10 Reporter: Ralf Mitschke Priority: Critical
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> -- This message was sent by Atlassian JIRA (v6.3.4#6332)