[ 
https://issues.apache.org/jira/browse/MDEP-483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Heinz Marbaise closed MDEP-483.
------------------------------------
    Resolution: Fixed
      Assignee: Karl Heinz Marbaise

Fixed in [r1677079|http://svn.apache.org/r1677079].

> 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
>            Assignee: Karl Heinz Marbaise
>            Priority: Critical
>             Fix For: 2.10.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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)

Reply via email to