maven - 使用 Maven 安装 Accumulo 时无法执行目标

标签 maven ubuntu accumulo

我正在尝试安装 Accumulo .但是我遇到了一个问题。

这是我正在使用的命令:

mvn package install -X

这是安装执行的最后一部分,您可以清楚地看到错误:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Accumulo Project ............................ SUCCESS [ 15.329 s]
[INFO] Apache Accumulo Fate ............................... SUCCESS [01:05 min]
[INFO] Apache Accumulo Start .............................. FAILURE [  7.833 s]
[INFO] Apache Accumulo Core ............................... SKIPPED
[INFO] Apache Accumulo Documentation ...................... SKIPPED
[INFO] Apache Accumulo Server Base ........................ SKIPPED
[INFO] Apache Accumulo Tracer Server ...................... SKIPPED
[INFO] Apache Accumulo Shell .............................. SKIPPED
[INFO] Apache Accumulo Simple Examples .................... SKIPPED
[INFO] Apache Accumulo GC Server .......................... SKIPPED
[INFO] Apache Accumulo Master Server ...................... SKIPPED
[INFO] Apache Accumulo Monitor Server ..................... SKIPPED
[INFO] Apache Accumulo Tablet Server ...................... SKIPPED
[INFO] Apache Accumulo MiniCluster ........................ SKIPPED
[INFO] Apache Accumulo Native Libraries ................... SKIPPED
[INFO] Apache Accumulo Proxy .............................. SKIPPED
[INFO] Apache Accumulo Iterator Test Harness .............. SKIPPED
[INFO] Apache Accumulo Testing ............................ SKIPPED
[INFO] Apache Accumulo .................................... SKIPPED
[INFO] Apache Accumulo Maven Plugin ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:30 min
[INFO] Finished at: 2016-10-26T15:05:30+00:00
[INFO] Final Memory: 52M/240M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (Build Test jars) on project accumulo-start: Command execution failed. Process exited with an error: 127 (Exit value: 127) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (Build Test jars) on project accumulo-start: Command execution failed.
        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:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        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:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        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:498)
        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.MojoExecutionException: Command execution failed.
        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:276)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        ... 20 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
        at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:660)
        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:265)
        ... 22 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 :accumulo-start

是否有我遗漏的包裹? Ubuntu 的一些错误?

操作系统: 没有可用的 LSB 模块。 经销商 ID:Ubuntu 说明:Ubuntu 16.04.1 LTS 发布:16.04 代号:xenial

我使用的是当前版本的 Accumulo ( the master on GitHub )。

最佳答案

看起来它在执行 makeTestJars 脚本时失败了,https://github.com/apache/accumulo/blob/master/start/src/test/shell/makeTestJars.sh ,这意味着它无法在您的系统上找到这四个命令之一(mkdir、sed、$JAVA_HOME/bin/javac 或 $JAVA_HOME/bin/jar)。

关于maven - 使用 Maven 安装 Accumulo 时无法执行目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40266123/

相关文章:

java - 使用 Maven 2 API 获取 WAR Artifact 的依赖项

java - 如何运行 Hippo CMS

java - Docker 镜像无法从另一个镜像读取/查找 .jar 文件?

ubuntu - pbuilder 创建失败

android - IDEA和DDMS同时运行无法连接模拟器

java - 累积删除带安全标签的行

maven - Mantis 集成到 Maven

Bash 脚本,比较数字

mysql - 我怎样才能有效地处理百万条记录

java - 测试错误 :test(org. apache.accumulo.examples.simple.filedata.ChunkInputFormatTest)