java8 / Java8InAction

MIT License
3.19k stars 2.26k forks source link

BUILD FAILURE #14

Closed sajmmon closed 7 years ago

sajmmon commented 7 years ago

I try to compile sources on Mac with Java 1.8.0_91

I get: chojnasm-ml:Java8InAction chojnasm$ mvn compile [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for manning:lambdasinaction:jar:1.0 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-shade-plugin is missing. @ line 44, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building lambdasinaction 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ lambdasinaction --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ lambdasinaction --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 100 source files to /Users/chojnasm/Downloads/Java8InAction/target/classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.558 s [INFO] Finished at: 2017-02-27T14:27:45+00:00 [INFO] Final Memory: 9M/309M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project lambdasinaction: Fatal error compiling: invalid target release: 1.9 -> [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/MojoExecutionException

mariofusco commented 7 years ago

That's expected, now it requires Java 9.

amangarg4804 commented 5 years ago

@mariofusco could have created another branch for 2nd edition.