[ 
https://issues.apache.org/jira/browse/DRILL-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13962994#comment-13962994
 ] 

haolin commented on DRILL-492:
------------------------------

I have figured it out now, you just need to install latest maven version to 
3.2.1.

> mvn clean install -DskipTests: Failed to execute goal 
> com.googlecode.maven-download-plugin:download-maven-plugin:1.2.0-SNAPSHOT
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-492
>                 URL: https://issues.apache.org/jira/browse/DRILL-492
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.0.0-milestone-1
>         Environment: root@mirage:~# cat /proc/version
> Linux version 3.2.0-24-generic (buildd@crested) (gcc version 4.6.3 
> (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012
>            Reporter: haolin
>
> I followed instructions referred to 
> https://cwiki.apache.org/confluence/display/DRILL/Compiling+Drill+from+source
> root@mirage:~# java -version
> java version "1.7.0_17"
> Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
> root@mirage:~# mvn -version
> Apache Maven 3.0.4
> Maven home: /usr/share/maven
> Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
> Default locale: zh_CN, platform encoding: UTF-8
> OS name: "linux", version: "3.2.0-24-generic", arch: "amd64", family: "unix"
> root@mirage:/home/mirage/linhao/incubator-drill# mvn clean install 
> -DskipTests -X
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Apache Drill Root POM ............................. SUCCESS [4.068s]
> [INFO] Drill Protocol .................................... FAILURE [0.731s]
> [INFO] Common (Logical Plan, Base expressions) ........... SKIPPED
> [INFO] contrib/Parent Pom ................................ SKIPPED
> [INFO] contrib/data/Parent Pom ........................... SKIPPED
> [INFO] contrib/data/tpch-sample-data ..................... SKIPPED
> [INFO] contrib/storage-hive .............................. SKIPPED
> [INFO] exec/Parent Pom ................................... SKIPPED
> [INFO] exec/Netty Little Endian Buffers .................. SKIPPED
> [INFO] exec/Java Execution Engine ........................ SKIPPED
> [INFO] contrib/hbase-storage-plugin ...................... SKIPPED
> [INFO] SQL Parser ........................................ SKIPPED
> [INFO] contrib/sqlline ................................... SKIPPED
> [INFO] Packaging and Distribution Assembly ............... SKIPPED
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 5.504s
> [INFO] Finished at: Tue Apr 08 16:28:51 CST 2014
> [INFO] Final Memory: 23M/964M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) 
> on project drill-protocol: Fatal error compiling: 无效的目标版本: 1.7 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile 
> (default-compile) on project drill-protocol: Fatal error compiling
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:616)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error 
> compiling
>       at 
> org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:695)
>       at 
> org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:118)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>       ... 19 more
> Caused by: org.codehaus.plexus.compiler.CompilerException: 无效的目标版本: 1.7
>       at 
> org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:191)
>       at 
> org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:170)
>       at 
> org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:684)
>       ... 22 more
> Caused by: java.lang.IllegalArgumentException: 无效的目标版本: 1.7
>       at 
> com.sun.tools.javac.main.RecognizedOptions$GrumpyHelper.error(RecognizedOptions.java:88)
>       at 
> com.sun.tools.javac.main.RecognizedOptions$14.process(RecognizedOptions.java:393)
>       at com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:259)
>       at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:219)
>       at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:66)
>       at 
> org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:115)
>       ... 24 more
> [ERROR] 
> [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
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <goals> -rf :drill-protocol



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to