drill-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avinash Dongre <adon...@gopivotal.com>
Subject Re: Build error mvn install
Date Sat, 18 May 2013 18:02:08 GMT
Thanks
I could make some progress after install JDK 1.7 and resolving the deps.
But Now I am getting following errors

[INFO]
------------------------------------------------------------------------
[INFO] Building sqlparser
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: no_commons_logging}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/incubator-drill/sandbox/prototype/sqlparser/src/main/resources
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 10 source files to
/incubator-drill/sandbox/prototype/sqlparser/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING]
/incubator-drill/sandbox/prototype/sqlparser/src/main/java/org/apache/drill/optiq/EnumerableDrill.java:
/incubator-drill/sandbox/prototype/sqlparser/src/main/java/org/apache/drill/optiq/EnumerableDrill.java
uses unchecked or unsafe operations.
[WARNING]
/incubator-drill/sandbox/prototype/sqlparser/src/main/java/org/apache/drill/optiq/EnumerableDrill.java:
Recompile with -Xlint:unchecked for details.
[INFO] 2 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/incubator-drill/sandbox/prototype/sqlparser/src/main/java/org/apache/drill/jdbc/DrillTable.java:[46,8]
org.apache.drill.jdbc.DrillTable is not abstract and does not override
abstract method getStatistic() in net.hydromatic.optiq.Table
[ERROR]
/incubator-drill/sandbox/prototype/sqlparser/src/main/java/org/apache/drill/jdbc/DrillTable.java:[85,11]
method addTable in interface net.hydromatic.optiq.MutableSchema cannot be
applied to given types;
  required: net.hydromatic.optiq.Schema.TableInSchema
  found: java.lang.String,org.apache.drill.jdbc.DrillTable
  reason: actual and formal argument lists differ in length
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

/incubator-drill/sandbox/prototype/sqlparser/src/main/java/org/apache/drill/jdbc/DrillTable.java:[46,8]
org.apache.drill.jdbc.DrillTable is not abstract and does not override
abstract method getStatistic() in net.hydromatic.optiq.Table
/incubator-drill/sandbox/prototype/sqlparser/src/main/java/org/apache/drill/jdbc/DrillTable.java:[85,11]
method addTable in interface net.hydromatic.optiq.MutableSchema cannot be
applied to given types;
  required: net.hydromatic.optiq.Schema.TableInSchema
  found: java.lang.String,org.apache.drill.jdbc.DrillTable
  reason: actual and formal argument lists differ in length

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Sat May 18 23:27:02 IST 2013
[INFO] Final Memory: 62M/752M
[INFO]
------------------------------------------------------------------------


Thanks
Avinash


On Sat, May 18, 2013 at 12:24 AM, Jacques Nadeau <jacques@apache.org> wrote:

> You need to compile with JDK7.  Your javac doesn't support 1.7.
>
> J
>
> On Fri, May 17, 2013 at 11:51 AM, Avinash Dongre <adongre@gopivotal.com>
> wrote:
> > I am getting following build error
> >
> > [INFO] Fatal error compiling
> >
> > Embedded error: invalid target release: 1.7
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Fatal error
> > compiling
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:597)
> > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > 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.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> > ... 17 more
> > Caused by: org.codehaus.plexus.compiler.CompilerException: invalid target
> > release: 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)
> > ... 20 more
> > Caused by: java.lang.IllegalArgumentException: invalid target release:
> 1.7
> > at
> >
> com.sun.tools.javac.main.RecognizedOptions$GrumpyHelper.error(RecognizedOptions.java:75)
> > at
> >
> com.sun.tools.javac.main.RecognizedOptions$14.process(RecognizedOptions.java:380)
> > at com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:247)
> > at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:207)
> > at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:53)
> > at
> >
> org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:115)
> > ... 22 more
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 5 seconds
> > [INFO] Finished at: Sat May 18 00:19:48 IST 2013
> > [INFO] Final Memory: 40M/370M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > thanks
> > Avinash
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message