Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-797

OkHttp module requires JDK 1.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.0.0
    • None
    • jclouds-drivers
    • None

    Description

      jclouds no longer compiles with JDK 1.6 due to OkHttp's dependency on JDK 1.7:

      $ mvn clean install -DskipTests
      [ERROR] COMPILATION ERROR :
      [ERROR] /home/gaul/work/jclouds/drivers/okhttp/src/main/java/org/jclouds/http/okhttp/OkHttpCommandExecutorService.java:[122,33] cannot access java.nio.file.Path
      class file for java.nio.file.Path not found
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project jclouds-okhttp: Compilation failure
      [ERROR] /home/gaul/work/jclouds/drivers/okhttp/src/main/java/org/jclouds/http/okhttp/OkHttpCommandExecutorService.java:[122,33] cannot access java.nio.file.Path
      [ERROR] class file for java.nio.file.Path not found
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :jclouds-okhttp
      

      We can use a workaround like we do for the filesystem blobstore to address this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gaul Andrew Gaul
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: