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

Unpack goal fails in java versions earlier than 7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.10
    • None
    • unpack
    • None

    Description

      When using the unpack goal with Java 1.5 or 1.6, the following error message will appear:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack (unpack) on project ID-JRE_8.0: Execution unpack of goal org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack: java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path;

      This is obviously calling a method introduced in Java 7. This contradicts the about page[1] that indicates that JDK 1.5 is the minimum required.

      This bug does not appear until version 2.10. Version 2.9 works fine.

      [1] http://maven.apache.org/plugins-archives/maven-dependency-plugin-2.10/project-summary.html

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              JasonThompson Jason W. Thompson
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: