Do you have protobuf 2.5.0 installed and in your path? (Protoc) Another thing is that you want to make sure maven is also using java 1.7, and if you run mvn version it shows you, as it is often still set to 1.6. This link shows you how to fix this: http://stackoverflow.com/questions/18813828/why-maven-use-jdk-1-6-but-my-java-version-is-1-7
Tim Sent from my iPhone > On Apr 27, 2014, at 7:02 AM, Darion Yaphet <[email protected]> wrote: > > My OS is Fedora 18 and JVM java version "1.7.0_45" > > thanks a lot for help > > > 2014-04-27 22:00 GMT+08:00 Darion Yaphet <[email protected]>: > >> It's sound a good idea and maybe I should reading help-doc >> https://cwiki.apache.org/confluence/display/DRILL/Compiling+Drill+from+source >> and checkout source code from git >> clone https://git-wip-us.apache.org/repos/asf/incubator-drill.git >> >> mvn command as following : >> >> mvn clean this is ok with success >> >> mvn install -DskipTests -X It's failed with helping message ... >> >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile >> (default-compile) on project drill-protocol: Compilation failure -> [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: Compilation failure >> >> >> >> >> 2014-04-26 22:46 GMT+08:00 Timothy Chen <[email protected]>: >> >> Hi Darion, >>> >>> The build failed because there is some file in the drill folder that >>> doesn't have the apache license header. >>> >>> There might be a file that you added to that folder that is causing it, >>> if you look at the rat.txt file indicated in your output you would know. >>> >>> I also suggest if you want to try out drill to just grab it from our git >>> repo and use latest master. >>> >>> Tim >>> >>> Sent from my iPhone >>> >>>>> On Apr 26, 2014, at 4:35 AM, Darion Yaphet <[email protected]> >>>> wrote: >>>> >>>> Hi All >>>> >>>> I download incubating-drill.zip from >>> http://mirrors.cnnic.cn/apache/incubator/drill/drill-1.0.0-m1-incubating/apache-drill-1.0.0-m1-incubating-source-release.zip >>>> >>>> and use maven to hava a built version >>>> >>>> mvn clean >>>> mvn install -DskipTests >>>> >>>> But mvn building is failed with following exception: >>>> >>>> [ERROR] Failed to execute goal >>> org.apache.rat:apache-rat-plugin:0.10:check >>>> (rat-checks) on project drill-root: Too many files with unapproved >>> license: >>>> 1 See RAT report in: >>> /home/darion.yaphet/source/apache-drill-1.0.0-m1-incubating/target/rat.txt >>>> -> [Help 1] >>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to >>> execute >>>> goal org.apache.rat:apache-rat-plugin:0.10:check (rat-checks) on project >>>> drill-root: Too many files with unapproved license: 1 See RAT report in: >>> /home/darion.yaphet/source/apache-drill-1.0.0-m1-incubating/target/rat.txt >>>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) >>>> 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:317) >>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152) >>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555) >>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) >>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) >>>> 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:606) >>>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) >>>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) >>>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) >>>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) >>>> Caused by: org.apache.rat.mp.RatCheckException: Too many files with >>>> unapproved license: 1 See RAT report in: >>> /home/darion.yaphet/source/apache-drill-1.0.0-m1-incubating/target/rat.txt >>>> at org.apache.rat.mp.RatCheckMojo.check(RatCheckMojo.java:183) >>>> at org.apache.rat.mp.RatCheckMojo.execute(RatCheckMojo.java:171) >>>> at >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) >>>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) >>>> ... 19 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/MojoFailureException >>>> >>>> It's something wrong in pom.xml ? >>>> or mvn building command is bad >>>> >>>> -- >>>> >>>> >>>> long is the way and hard that out of Hell leads up to light >> >> >> >> -- >> >> >> long is the way and hard that out of Hell leads up to light > > > -- > > > long is the way and hard that out of Hell leads up to light
