mapreduce-wordcount编译出现问题
来源:5-8 -Java版本wordcount功能实现
魔法少女德莉傻
2018-03-15
用mvn编译的时候报错了,报错是什么:
[ERROR] 不再支持源选项 1.5。请使用 1.6 或更高版本。
[ERROR] 不再支持目标选项 1.5。请使用 1.6 或更高版本。
完整的报错在下面。
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.imooc.hadoop:trainhadoop >--------------------
[INFO] Building trainhadoop 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ trainhadoop ---
[INFO] Deleting /Users/liuchenyang/Documents/hadoop_project/trainhadoop/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ trainhadoop ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/liuchenyang/Documents/hadoop_project/trainhadoop/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ trainhadoop ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/liuchenyang/Documents/hadoop_project/trainhadoop/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] 不再支持源选项 1.5。请使用 1.6 或更高版本。
[ERROR] 不再支持目标选项 1.5。请使用 1.6 或更高版本。
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.728 s
[INFO] Finished at: 2018-03-15T20:35:17+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project trainhadoop: Compilation failure: Compilation failure:
[ERROR] 不再支持源选项 1.5。请使用 1.6 或更高版本。
[ERROR] 不再支持目标选项 1.5。请使用 1.6 或更高版本。
[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
1回答
-
魔法少女德莉傻
提问者
2018-03-15
这个要在一开始配置xml的时候配置一下jdk的版本。百度上有。
112018-03-15
相似问题