Have you installed multiple JDK? And do you have JRE6 in your environment.
build_cube_with_engine is for test. If you don’t need test, you can add “-skipTests” to mvn command. Thanks, Dong Original Message Sender:TTS2沉默天使85546...@qq.com Recipient:dev...@kylin.apache.org Date:Monday, Jun 13, 2016 18:17 Subject:回复: mvn install error (build_cube_with_engine)说这个编译错误 我又不知道这是什么------------------ 原始邮件 ------------------ 发件人: "85546017"85546...@qq.com 发送时间: 2016年6月13日(星期一) 晚上6:11 收件人: "dev"dev@kylin.apache.org; 主题: 回复: mvn install error 我编译的环境是jdk1.7的------------------ 原始邮#x4EF6; ------------------ 发#x4EF6;人: "Li Yang"liy...@apache.org 发送时间: 2016年6月13日(星期一) 下午5:13 收#x4EF6;人: "dev"dev@kylin.apache.org; 主题: Re: mvn install error Kylin requires JDK 7. Seems you are on JDK 6. On Sat, Jun 11, 2016 at 11:43 AM, TTS2沉默天使 85546...@qq.com wrote: [INFO] --- exec-maven-plugin:1.4.0:exec (build_cube_with_engine) @ kylin-it --- Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/kylin/provision/BuildCubeWithEngine : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:643) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) Could not find the main class: org.apache.kylin.provision.BuildCubeWithEngine. Program will exit. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:34 min [INFO] Finished at: 2016-06-11T11:22:50+08:00 [INFO] Final Memory: 39M/372M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (build_cube_with_engine) on project kylin-it: Command execution failed. Process exited with an error: 1 (Exit value: 1) - [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 ------------------ 原始邮#x4EF6; ------------------ 发#x4EF6;人: "TTS2沉默天使";85546...@qq.com; 发送时间: 2016年6月11日(星期六) 中午11:42 收#x4EF6;人: "dev"dev@kylin.apache.org; 主题: mvn install error Kylin-it:Mvn install error POM:hbase-hadoop2.version1.2.1/hbase-hadoop2.version