[
https://issues.apache.org/jira/browse/JCLOUDS-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14262038#comment-14262038
]
Ignasi Barrera commented on JCLOUDS-797:
----------------------------------------
Yes. The JDK 1.7 specific profile was introduced when we went back to Java 6,
because the filesystem provider heavily used Java 7. That profile no longer
makes sense, so I'd just delete it (and keep the specific animal sniffer
configuration for the filesystem provider).
> OkHttp module requires JDK 1.7
> ------------------------------
>
> Key: JCLOUDS-797
> URL: https://issues.apache.org/jira/browse/JCLOUDS-797
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-drivers
> Affects Versions: 2.0.0
> Reporter: Andrew Gaul
>
> jclouds no longer compiles with JDK 1.6 due to OkHttp's dependency on JDK 1.7:
> {noformat}
> $ 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
> {noformat}
> We can use a workaround like we do for the filesystem blobstore to address
> this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)