I tried a building from source using the same branch (i.e. *master*) after creating a fresh clone and I faced some trouble <https://issues.apache.org/jira/browse/DRILL-5606> but its none of what you are mentioning here. Are you running the tests from the command line or from eclipse ? Try the command line (i.e. mvn clean install)
One thing that caused the test failures (None of the issues you are mentioning) on my machine was that my system had other things running and that caused some timeout-oriented tests to fails. There are 2 constant failures though but I haven't got the chance to look into that yet. -- Gelbana On Sun, Jul 2, 2017 at 10:43 PM, Charles Givre <[email protected]> wrote: > Hello all, > I’m having a small problem building Drill from source. I keep getting the > errors below when I try to run tests. It builds fine when I skip the > tests. I’ve googled the errors and haven’t really found anything helpful. > I’m not an expert on Maven so any suggestions would be helpful. Full stack > trace below. I’m on a Mac using Sierra. > > I tried mvn dependencies::tree -U and am getting this error as well: > > [ERROR] Failed to execute goal on project drill-jdbc: Could not resolve > dependencies for project org.apache.drill.exec:drill-jdbc:jar:1.11.0-SNAPSHOT: > The following artifacts could not be resolved: > org.apache.drill.exec:drill-java-exec:jar:1.11.0-SNAPSHOT, > org.apache.drill.exec:drill-java-exec:jar:tests:1.11.0-SNAPSHOT: Could > not find artifact org.apache.drill.exec:drill-java-exec:jar:1.11.0-SNAPSHOT > in mapr-drill-optiq-snapshots (http://repository.mapr.com/ > nexus/content/repositories/drill-optiq/) -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal on project drill-jdbc: Could not resolve dependencies for project > org.apache.drill.exec:drill-jdbc:jar:1.11.0-SNAPSHOT: The following > artifacts could not be resolved: > org.apache.drill.exec:drill-java-exec:jar:1.11.0-SNAPSHOT, > org.apache.drill.exec:drill-java-exec:jar:tests:1.11.0-SNAPSHOT: Could > not find artifact org.apache.drill.exec:drill-java-exec:jar:1.11.0-SNAPSHOT > in mapr-drill-optiq-snapshots (http://repository.mapr.com/ > nexus/content/repositories/drill-optiq/) > at org.apache.maven.lifecycle.internal. > LifecycleDependencyResolver.getDependencies(LifecycleDependencyRe > > > Thanks, > — C > > > [ERROR] Failed to execute goal org.apache.maven.plugins: > maven-surefire-plugin:2.17:test (default-test) on project > drill-java-exec: ExecutionException: java.lang.RuntimeException: There was > an error in the forked process > [ERROR] java.lang.NoClassDefFoundError: mockit/internal/state/TestRun > [ERROR] at org.junit.runner.notification.RunNotifier. > fireTestRunStarted(RunNotifier.java) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:136) > [ERROR] at org.junit.runner.JUnitCore.run(JUnitCore.java:115) > [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > createRequestAndRun(JUnitCoreWrapper.java:113) > [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > executeLazy(JUnitCoreWrapper.java:94) > [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > execute(JUnitCoreWrapper.java:58) > [ERROR] at org.apache.maven.surefire.junitcore.JUnitCoreProvider. > invoke(JUnitCoreProvider.java:134) > [ERROR] at org.apache.maven.surefire.booter.ForkedBooter. > invokeProviderInSameClassLoader(ForkedBooter.java:200) > [ERROR] at org.apache.maven.surefire.booter.ForkedBooter. > runSuitesInProcess(ForkedBooter.java:153) > [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main( > ForkedBooter.java:103) > [ERROR] Caused by: java.lang.ClassNotFoundException: > mockit.internal.state.TestRun > [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java: > 381) > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > [ERROR] ... 10 more > [ERROR] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test > (default-test) on project drill-java-exec: ExecutionException > at org.apache.maven.lifecycle.internal.MojoExecutor.execute( > MojoExecutor.java:213) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute( > MojoExecutor.java:154) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute( > MojoExecutor.java:146) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder. > buildProject(LifecycleModuleBuilder.java:117) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder. > buildProject(LifecycleModuleBuilder.java:81) > at org.apache.maven.lifecycle.internal.builder.singlethreaded. > SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at org.apache.maven.lifecycle.internal.LifecycleStarter. > execute(LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > 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.maven.plugin.MojoFailureException: > ExecutionException > at org.apache.maven.plugin.surefire.SurefirePlugin. > assertNoException(SurefirePlugin.java:203) > at org.apache.maven.plugin.surefire.SurefirePlugin. > handleSummary(SurefirePlugin.java:193) > at org.apache.maven.plugin.surefire.AbstractSurefireMojo. > executeAfterPreconditionsChecked(AbstractSurefireMojo.java:861) > at org.apache.maven.plugin.surefire.AbstractSurefireMojo. > execute(AbstractSurefireMojo.java:729) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo( > DefaultBuildPluginManager.java:134) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute( > MojoExecutor.java:208) > ... 20 more > Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: > ExecutionException > at org.apache.maven.plugin.surefire.booterclient.ForkStarter. > runSuitesForkOnceMultiple(ForkStarter.java:252) > at org.apache.maven.plugin.surefire.booterclient. > ForkStarter.run(ForkStarter.java:165) > at org.apache.maven.plugin.surefire.AbstractSurefireMojo. > executeProvider(AbstractSurefireMojo.java:967) > at org.apache.maven.plugin.surefire.AbstractSurefireMojo. > executeAfterPreconditionsChecked(AbstractSurefireMojo.java:831) > ... 23 more > Caused by: java.util.concurrent.ExecutionException: > java.lang.RuntimeException: There was an error in the forked process > java.lang.NoClassDefFoundError: mockit/internal/state/TestRun > at org.junit.runner.notification.RunNotifier.fireTestRunStarted( > RunNotifier.java) > at org.junit.runner.JUnitCore.run(JUnitCore.java:136) > at org.junit.runner.JUnitCore.run(JUnitCore.java:115) > at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > createRequestAndRun(JUnitCoreWrapper.java:113) > at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > executeLazy(JUnitCoreWrapper.java:94) > at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > execute(JUnitCoreWrapper.java:58) > at org.apache.maven.surefire.junitcore.JUnitCoreProvider. > invoke(JUnitCoreProvider.java:134) > at org.apache.maven.surefire.booter.ForkedBooter. > invokeProviderInSameClassLoader(ForkedBooter.java:200) > at org.apache.maven.surefire.booter.ForkedBooter. > runSuitesInProcess(ForkedBooter.java:153) > at org.apache.maven.surefire.booter.ForkedBooter.main( > ForkedBooter.java:103) > Caused by: java.lang.ClassNotFoundException: mockit.internal.state.TestRun > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 10 more > > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.util.concurrent.FutureTask.get(FutureTask.java:192) > at org.apache.maven.plugin.surefire.booterclient.ForkStarter. > runSuitesForkOnceMultiple(ForkStarter.java:236) > ... 26 more > Caused by: java.lang.RuntimeException: There was an error in the forked > process > java.lang.NoClassDefFoundError: mockit/internal/state/TestRun > at org.junit.runner.notification.RunNotifier.fireTestRunStarted( > RunNotifier.java) > at org.junit.runner.JUnitCore.run(JUnitCore.java:136) > at org.junit.runner.JUnitCore.run(JUnitCore.java:115) > at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > createRequestAndRun(JUnitCoreWrapper.java:113) > at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > executeLazy(JUnitCoreWrapper.java:94) > at org.apache.maven.surefire.junitcore.JUnitCoreWrapper. > execute(JUnitCoreWrapper.java:58) > at org.apache.maven.surefire.junitcore.JUnitCoreProvider. > invoke(JUnitCoreProvider.java:134) > at org.apache.maven.surefire.booter.ForkedBooter. > invokeProviderInSameClassLoader(ForkedBooter.java:200) > at org.apache.maven.surefire.booter.ForkedBooter. > runSuitesInProcess(ForkedBooter.java:153) > at org.apache.maven.surefire.booter.ForkedBooter.main( > ForkedBooter.java:103) > Caused by: java.lang.ClassNotFoundException: mockit.internal.state.TestRun > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 10 more > > at org.apache.maven.plugin.surefire.booterclient. > ForkStarter.fork(ForkStarter.java:479) > at org.apache.maven.plugin.surefire.booterclient. > ForkStarter.fork(ForkStarter.java:352) > at org.apache.maven.plugin.surefire.booterclient. > ForkStarter.access$300(ForkStarter.java:85) > at org.apache.maven.plugin.surefire.booterclient. > ForkStarter$1.call(ForkStarter.java:224) > at org.apache.maven.plugin.surefire.booterclient. > ForkStarter$1.call(ForkStarter.java:214) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > [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 > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn <goals> -rf :drill-java-exec > >
