Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-483

NullPointerException when using classifier and markers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.10
    • 3.0.0
    • unpack-dependencies
    • 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>

      Attachments

        Activity

          People

            khmarbaise Karl Heinz Marbaise
            mitschke Ralf Mitschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified