You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@metron.apache.org by Kevin Waterson <ke...@gmail.com> on 2017/05/22 00:06:04 UTC

Build fails

Not sure if this is RPM related or something else??

Thanks
Kevin

TASK [metron-builder : Build Metron RPMs]
**************************************
fatal: [node1 -> localhost]: FAILED! => {"changed": true, "cmd": "cd
/home/kevin/metron/docs/incubator-metron/metron-deployment/playbooks/../../metron-deployment
&& mvn clean package -DskipTests -P build-rpms", "delta": "0:00:03.224565",
"end": "2017-05-22 08:56:54.346028", "failed": true, "rc": 1, "start":
"2017-05-22 08:56:51.121463", "stderr": "", "stdout": "[INFO] Scanning for
projects...\n[INFO]
------------------------------------------------------------------------\n[INFO]
Reactor Build Order:\n[INFO] \n[INFO] metron-deployment\n[INFO]
metron-rpm\n[INFO]
\n[INFO]
------------------------------------------------------------------------\n[INFO]
Building metron-deployment 0.4.0\n[INFO]
------------------------------------------------------------------------\n[INFO]
\n[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
metron-deployment ---\n[INFO] \n[INFO] ---
jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment
---\n[INFO] argLine set to
-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/docs/incubator-metron/metron-deployment/target/jacoco.exec\n[INFO]
\n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment
---\n[INFO] Skipping JaCoCo execution due to missing execution data
file.\n[INFO]
\n[INFO]
------------------------------------------------------------------------\n[INFO]
Building metron-rpm 0.4.0\n[INFO]
------------------------------------------------------------------------\n[INFO]
\n[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ metron-rpm
---\n[INFO] \n[INFO] --- maven-antrun-plugin:1.1:run (default) @ metron-rpm
---\n[INFO] Executing tasks\n     [echo] ******** Displaying value of
property ********\n     [echo] ../../../..\n[INFO] Executed tasks\n[INFO]
\n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-rpm
---\n[INFO] argLine set to
-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker/target/jacoco.exec\n[INFO]
\n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-rpm
---\n[INFO] Skipping JaCoCo execution due to missing execution data
file.\n[INFO] \n[INFO] --- maven-resources-plugin:3.0.1:copy-resources
(copy-rpm-sources) @ metron-rpm ---\n[INFO] Using 'UTF-8' encoding to copy
filtered resources.\n[INFO] Copying 1 resource\n[INFO] Copying 1
resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO]
Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1
resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO]
Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] \n[INFO] ---
exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---\n[ERROR]
Command execution failed.\njava.io.IOException: Cannot run program
\"docker\" (in directory
\"/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
error=2, No such file or directory\n\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)\n\tat
java.lang.Runtime.exec(Runtime.java:620)\n\tat
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)\n\tat
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)\n\tat
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)\n\tat
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)\n\tat
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)\n\tat
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)\n\tat
org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)\n\tat
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\n\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)\n\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\n\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\n\tat
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\n\tat
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\n\tat
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\n\tat
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\n\tat
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\n\tat
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\n\tat
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\n\tat
org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)\n\tat
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)\n\tat
org.apache.maven.cli.MavenCli.main(MavenCli.java:199)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat
java.lang.reflect.Method.invoke(Method.java:498)\n\tat
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\n\tat
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\n\tat
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\n\tat
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\nCaused
by: java.io.IOException: error=2, No such file or directory\n\tat
java.lang.UNIXProcess.forkAndExec(Native Method)\n\tat
java.lang.UNIXProcess.<init>(UNIXProcess.java:247)\n\tat
java.lang.ProcessImpl.start(ProcessImpl.java:134)\n\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\n\t... 30
more\n[INFO]
------------------------------------------------------------------------\n[INFO]
Reactor Summary:\n[INFO] \n[INFO] metron-deployment
.................................. SUCCESS [  0.619 s]\n[INFO] metron-rpm
......................................... FAILURE [  1.250 s]\n[INFO]
------------------------------------------------------------------------\n[INFO]
BUILD FAILURE\n[INFO]
------------------------------------------------------------------------\n[INFO]
Total time: 1.993 s\n[INFO] Finished at: 2017-05-22T08:56:54+10:00\n[INFO]
Final Memory: 21M/623M\n[INFO]
------------------------------------------------------------------------\n[ERROR]
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
(docker-build) on project metron-rpm: Command execution failed. Cannot run
program \"docker\" (in directory
\"/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
error=2, No such file or directory -> [Help 1]\n[ERROR] \n[ERROR] To see
the full stack trace of the errors, re-run Maven with the -e
switch.\n[ERROR] Re-run Maven using the -X switch to enable full debug
logging.\n[ERROR] \n[ERROR] For more information about the errors and
possible solutions, please read the following articles:\n[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\n[ERROR]
\n[ERROR] After correcting the problems, you can resume the build with the
command\n[ERROR]   mvn <goals> -rf :metron-rpm", "stdout_lines": ["[INFO]
Scanning for projects...", "[INFO]
------------------------------------------------------------------------",
"[INFO] Reactor Build Order:", "[INFO] ", "[INFO] metron-deployment",
"[INFO] metron-rpm",
"[INFO]
", "[INFO]
------------------------------------------------------------------------",
"[INFO] Building metron-deployment 0.4.0", "[INFO]
------------------------------------------------------------------------",
"[INFO] ", "[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
metron-deployment ---", "[INFO] ", "[INFO] ---
jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment ---",
"[INFO] argLine set to
-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/docs/incubator-metron/metron-deployment/target/jacoco.exec",
"[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @
metron-deployment ---", "[INFO] Skipping JaCoCo execution due to missing
execution data file.",
"[INFO]
", "[INFO]
------------------------------------------------------------------------",
"[INFO] Building metron-rpm 0.4.0", "[INFO]
------------------------------------------------------------------------",
"[INFO] ", "[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
metron-rpm ---", "[INFO] ", "[INFO] --- maven-antrun-plugin:1.1:run
(default) @ metron-rpm ---", "[INFO] Executing tasks", "     [echo]
******** Displaying value of property ********", "     [echo] ../../../..",
"[INFO] Executed tasks", "[INFO] ", "[INFO] ---
jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-rpm ---",
"[INFO] argLine set to
-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker/target/jacoco.exec",
"[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @
metron-rpm ---", "[INFO] Skipping JaCoCo execution due to missing execution
data file.", "[INFO] ", "[INFO] ---
maven-resources-plugin:3.0.1:copy-resources (copy-rpm-sources) @ metron-rpm
---", "[INFO] Using 'UTF-8' encoding to copy filtered resources.", "[INFO]
Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1
resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource",
"[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1
resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource",
"[INFO] Copying 1 resource", "[INFO] ", "[INFO] ---
exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---", "[ERROR]
Command execution failed.", "java.io.IOException: Cannot run program
\"docker\" (in directory
\"/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
error=2, No such file or directory", "\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)", "\tat
java.lang.Runtime.exec(Runtime.java:620)", "\tat
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)",
"\tat
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)",
"\tat
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)",
"\tat
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)",
"\tat
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)",
"\tat
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)",
"\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)", "\tat
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)",
"\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)",
"\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)",
"\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)",
"\tat
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)",
"\tat
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)",
"\tat
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)",
"\tat
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)",
"\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)",
"\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)",
"\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)", "\tat
org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)", "\tat
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)", "\tat
org.apache.maven.cli.MavenCli.main(MavenCli.java:199)", "\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
"\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
"\tat java.lang.reflect.Method.invoke(Method.java:498)", "\tat
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)",
"\tat
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)",
"\tat
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)",
"\tat
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)",
"Caused by: java.io.IOException: error=2, No such file or directory", "\tat
java.lang.UNIXProcess.forkAndExec(Native Method)", "\tat
java.lang.UNIXProcess.<init>(UNIXProcess.java:247)", "\tat
java.lang.ProcessImpl.start(ProcessImpl.java:134)", "\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)", "\t... 30 more",
"[INFO]
------------------------------------------------------------------------",
"[INFO] Reactor Summary:", "[INFO] ", "[INFO] metron-deployment
.................................. SUCCESS [  0.619 s]", "[INFO] metron-rpm
......................................... FAILURE [  1.250 s]", "[INFO]
------------------------------------------------------------------------",
"[INFO] BUILD FAILURE", "[INFO]
------------------------------------------------------------------------",
"[INFO] Total time: 1.993 s", "[INFO] Finished at:
2017-05-22T08:56:54+10:00", "[INFO] Final Memory: 21M/623M", "[INFO]
------------------------------------------------------------------------",
"[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on project
metron-rpm: Command execution failed. Cannot run program \"docker\" (in
directory
\"/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
error=2, No such file or directory -> [Help 1]", "[ERROR] ", "[ERROR] To
see the full stack trace of the errors, re-run Maven with the -e switch.",
"[ERROR] Re-run Maven using the -X switch to enable full debug logging.",
"[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 :metron-rpm"],
"warnings": []}

Re: Build fails

Posted by moshe jarusalem <tu...@gmail.com>.
I guess you need to add your user to linux group "docker".

sudo usermod -aG docker $USER

you need to reboot too


On Mon, May 22, 2017 at 3:18 PM, Otto Fowler <ot...@gmail.com>
wrote:

> Do you have docker installed and running?
> Are you using the latest master code?
> Can you run metron-deployment/scripts/platform_info.sh and include?
>
> if you :
>
> >cd metron-deployment
> >mvn package -P build-rpms
>
> you will get better log output
>
> Can you try that ( if you _do_ have docker installed and running ).
>
>
>
> On May 21, 2017 at 20:06:17, Kevin Waterson (kevin.waterson@gmail.com)
> wrote:
>
> Not sure if this is RPM related or something else??
>
> Thanks
> Kevin
>
> TASK [metron-builder : Build Metron RPMs] ******************************
> ********
> fatal: [node1 -> localhost]: FAILED! => {"changed": true, "cmd": "cd
> /home/kevin/metron/docs/incubator-metron/metron-
> deployment/playbooks/../../metron-deployment && mvn clean package
> -DskipTests -P build-rpms", "delta": "0:00:03.224565", "end": "2017-05-22
> 08:56:54.346028", "failed": true, "rc": 1, "start": "2017-05-22
> 08:56:51.121463", "stderr": "", "stdout": "[INFO] Scanning for
> projects...\n[INFO] ------------------------------
> ------------------------------------------\n[INFO] Reactor Build
> Order:\n[INFO] \n[INFO] metron-deployment\n[INFO]
> metron-rpm\n[INFO]
> \n[INFO] ------------------------------------------------------------------------\n[INFO]
> Building metron-deployment 0.4.0\n[INFO] ------------------------------
> ------------------------------------------\n[INFO] \n[INFO] ---
> maven-clean-plugin:2.5:clean (default-clean) @ metron-deployment
> ---\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent
> (default) @ metron-deployment ---\n[INFO] argLine set to
> -javaagent:/root/.m2/repository/org/jacoco/org.
> jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=
> destfile=/home/kevin/metron/docs/incubator-metron/metron-
> deployment/target/jacoco.exec\n[INFO] \n[INFO] ---
> jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment ---\n[INFO]
> Skipping JaCoCo execution due to missing execution data
> file.\n[INFO]
> \n[INFO] ------------------------------------------------------------------------\n[INFO]
> Building metron-rpm 0.4.0\n[INFO] ------------------------------
> ------------------------------------------\n[INFO] \n[INFO] ---
> maven-clean-plugin:3.0.0:clean (default-clean) @ metron-rpm ---\n[INFO]
> \n[INFO] --- maven-antrun-plugin:1.1:run (default) @ metron-rpm ---\n[INFO]
> Executing tasks\n     [echo] ******** Displaying value of property
> ********\n     [echo] ../../../..\n[INFO] Executed tasks\n[INFO] \n[INFO]
> --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-rpm
> ---\n[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.
> jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=
> destfile=/home/kevin/metron/docs/incubator-metron/metron-
> deployment/packaging/docker/rpm-docker/target/jacoco.exec\n[INFO]
> \n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-rpm
> ---\n[INFO] Skipping JaCoCo execution due to missing execution data
> file.\n[INFO] \n[INFO] --- maven-resources-plugin:3.0.1:copy-resources
> (copy-rpm-sources) @ metron-rpm ---\n[INFO] Using 'UTF-8' encoding to copy
> filtered resources.\n[INFO] Copying 1 resource\n[INFO] Copying 1
> resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO]
> Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1
> resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO]
> Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] \n[INFO] ---
> exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---\n[ERROR]
> Command execution failed.\njava.io.IOException: Cannot run program
> \"docker\" (in directory \"/home/kevin/metron/docs/
> incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
> error=2, No such file or directory\n\tat java.lang.ProcessBuilder.
> start(ProcessBuilder.java:1048)\n\tat java.lang.Runtime.exec(Runtime.java:620)\n\tat
> org.apache.commons.exec.launcher.Java13CommandLauncher.exec(
> Java13CommandLauncher.java:61)\n\tat org.apache.commons.exec.
> DefaultExecutor.launch(DefaultExecutor.java:279)\n\tat
> org.apache.commons.exec.DefaultExecutor.executeInternal(
> DefaultExecutor.java:336)\n\tat org.apache.commons.exec.
> DefaultExecutor.execute(DefaultExecutor.java:166)\n\tat
> org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)\n\tat
> org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)\n\tat
> org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)\n\tat
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
> DefaultBuildPluginManager.java:134)\n\tat org.apache.maven.lifecycle.
> internal.MojoExecutor.execute(MojoExecutor.java:207)\n\tat
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\n\tat
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\n\tat
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> LifecycleModuleBuilder.java:116)\n\tat org.apache.maven.lifecycle.
> internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\n\tat
> org.apache.maven.lifecycle.internal.builder.singlethreaded.
> SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\n\tat
> org.apache.maven.lifecycle.internal.LifecycleStarter.
> execute(LifecycleStarter.java:128)\n\tat org.apache.maven.DefaultMaven.
> doExecute(DefaultMaven.java:307)\n\tat org.apache.maven.DefaultMaven.
> doExecute(DefaultMaven.java:193)\n\tat org.apache.maven.DefaultMaven.
> execute(DefaultMaven.java:106)\n\tat org.apache.maven.cli.MavenCli.
> execute(MavenCli.java:863)\n\tat org.apache.maven.cli.MavenCli.
> doMain(MavenCli.java:288)\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:199)\n\tat
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat
> org.codehaus.plexus.classworlds.launcher.Launcher.
> launchEnhanced(Launcher.java:289)\n\tat org.codehaus.plexus.
> classworlds.launcher.Launcher.launch(Launcher.java:229)\n\tat
> org.codehaus.plexus.classworlds.launcher.Launcher.
> mainWithExitCode(Launcher.java:415)\n\tat org.codehaus.plexus.
> classworlds.launcher.Launcher.main(Launcher.java:356)\nCaused by:
> java.io.IOException: error=2, No such file or directory\n\tat
> java.lang.UNIXProcess.forkAndExec(Native Method)\n\tat
> java.lang.UNIXProcess.<init>(UNIXProcess.java:247)\n\tat
> java.lang.ProcessImpl.start(ProcessImpl.java:134)\n\tat
> java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\n\t... 30
> more\n[INFO] ------------------------------------------------------------------------\n[INFO]
> Reactor Summary:\n[INFO] \n[INFO] metron-deployment
> .................................. SUCCESS [  0.619 s]\n[INFO] metron-rpm
> ......................................... FAILURE [  1.250 s]\n[INFO]
> ------------------------------------------------------------------------\n[INFO]
> BUILD FAILURE\n[INFO] ------------------------------
> ------------------------------------------\n[INFO] Total time: 1.993
> s\n[INFO] Finished at: 2017-05-22T08:56:54+10:00\n[INFO] Final Memory:
> 21M/623M\n[INFO] ------------------------------
> ------------------------------------------\n[ERROR] Failed to execute
> goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on
> project metron-rpm: Command execution failed. Cannot run program \"docker\"
> (in directory \"/home/kevin/metron/docs/incubator-metron/metron-
> deployment/packaging/docker/rpm-docker\"): error=2, No such file or
> directory -> [Help 1]\n[ERROR] \n[ERROR] To see the full stack trace of the
> errors, re-run Maven with the -e switch.\n[ERROR] Re-run Maven using the -X
> switch to enable full debug logging.\n[ERROR] \n[ERROR] For more
> information about the errors and possible solutions, please read the
> following articles:\n[ERROR] [Help 1] http://cwiki.apache.org/
> confluence/display/MAVEN/MojoExecutionException\n[ERROR]
> <http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException/n%5BERROR%5D>
> \n[ERROR] After correcting the problems, you can resume the build with the
> command\n[ERROR]   mvn <goals> -rf :metron-rpm", "stdout_lines": ["[INFO]
> Scanning for projects...", "[INFO] ------------------------------
> ------------------------------------------", "[INFO] Reactor Build
> Order:", "[INFO] ", "[INFO] metron-deployment", "[INFO] metron-rpm",
> "[INFO]
> ", "[INFO] ------------------------------------------------------------------------",
> "[INFO] Building metron-deployment 0.4.0", "[INFO]
> ------------------------------------------------------------------------",
> "[INFO] ", "[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
> metron-deployment ---", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent
> (default) @ metron-deployment ---", "[INFO] argLine set to
> -javaagent:/root/.m2/repository/org/jacoco/org.
> jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=
> destfile=/home/kevin/metron/docs/incubator-metron/metron-
> deployment/target/jacoco.exec", "[INFO] ", "[INFO] ---
> jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment ---",
> "[INFO] Skipping JaCoCo execution due to missing execution data file.",
> "[INFO]
> ", "[INFO] ------------------------------------------------------------------------",
> "[INFO] Building metron-rpm 0.4.0", "[INFO] ------------------------------
> ------------------------------------------", "[INFO] ", "[INFO] ---
> maven-clean-plugin:3.0.0:clean (default-clean) @ metron-rpm ---", "[INFO]
> ", "[INFO] --- maven-antrun-plugin:1.1:run (default) @ metron-rpm ---",
> "[INFO] Executing tasks", "     [echo] ******** Displaying value of
> property ********", "     [echo] ../../../..", "[INFO] Executed tasks",
> "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default)
> @ metron-rpm ---", "[INFO] argLine set to -javaagent:/root/.m2/
> repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.
> agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/
> docs/incubator-metron/metron-deployment/packaging/docker/
> rpm-docker/target/jacoco.exec", "[INFO] ", "[INFO] ---
> jacoco-maven-plugin:0.7.9:report (report) @ metron-rpm ---", "[INFO]
> Skipping JaCoCo execution due to missing execution data file.", "[INFO] ",
> "[INFO] --- maven-resources-plugin:3.0.1:copy-resources
> (copy-rpm-sources) @ metron-rpm ---", "[INFO] Using 'UTF-8' encoding to
> copy filtered resources.", "[INFO] Copying 1 resource", "[INFO] Copying 1
> resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource",
> "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1
> resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource",
> "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] ",
> "[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---",
> "[ERROR] Command execution failed.", "java.io.IOException: Cannot run
> program \"docker\" (in directory \"/home/kevin/metron/docs/
> incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
> error=2, No such file or directory", "\tat java.lang.ProcessBuilder.
> start(ProcessBuilder.java:1048)", "\tat java.lang.Runtime.exec(Runtime.java:620)",
> "\tat org.apache.commons.exec.launcher.Java13CommandLauncher.exec(
> Java13CommandLauncher.java:61)", "\tat org.apache.commons.exec.
> DefaultExecutor.launch(DefaultExecutor.java:279)", "\tat
> org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)",
> "\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)",
> "\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)",
> "\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)",
> "\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)", "\tat
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
> DefaultBuildPluginManager.java:134)", "\tat org.apache.maven.lifecycle.
> internal.MojoExecutor.execute(MojoExecutor.java:207)", "\tat
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)",
> "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)",
> "\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
> buildProject(LifecycleModuleBuilder.java:116)", "\tat
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> LifecycleModuleBuilder.java:80)", "\tat org.apache.maven.lifecycle.
> internal.builder.singlethreaded.SingleThreadedBuilder.build(
> SingleThreadedBuilder.java:51)", "\tat org.apache.maven.lifecycle.
> internal.LifecycleStarter.execute(LifecycleStarter.java:128)", "\tat
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)", "\tat
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)", "\tat
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)", "\tat
> org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)", "\tat
> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)", "\tat
> org.apache.maven.cli.MavenCli.main(MavenCli.java:199)", "\tat sun.reflect.
> NativeMethodAccessorImpl.invoke0(Native Method)", "\tat sun.reflect.
> NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)", "\tat
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)", "\tat java.lang.reflect.Method.invoke(Method.java:498)",
> "\tat org.codehaus.plexus.classworlds.launcher.Launcher.
> launchEnhanced(Launcher.java:289)", "\tat org.codehaus.plexus.
> classworlds.launcher.Launcher.launch(Launcher.java:229)", "\tat
> org.codehaus.plexus.classworlds.launcher.Launcher.
> mainWithExitCode(Launcher.java:415)", "\tat org.codehaus.plexus.
> classworlds.launcher.Launcher.main(Launcher.java:356)", "Caused by:
> java.io.IOException: error=2, No such file or directory", "\tat
> java.lang.UNIXProcess.forkAndExec(Native Method)", "\tat
> java.lang.UNIXProcess.<init>(UNIXProcess.java:247)", "\tat
> java.lang.ProcessImpl.start(ProcessImpl.java:134)", "\tat
> java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)", "\t... 30
> more", "[INFO] ------------------------------
> ------------------------------------------", "[INFO] Reactor Summary:",
> "[INFO] ", "[INFO] metron-deployment ..................................
> SUCCESS [  0.619 s]", "[INFO] metron-rpm .........................................
> FAILURE [  1.250 s]", "[INFO] ------------------------------
> ------------------------------------------", "[INFO] BUILD FAILURE",
> "[INFO] ------------------------------------------------------------------------",
> "[INFO] Total time: 1.993 s", "[INFO] Finished at:
> 2017-05-22T08:56:54+10:00", "[INFO] Final Memory: 21M/623M", "[INFO]
> ------------------------------------------------------------------------",
> "[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
> (docker-build) on project metron-rpm: Command execution failed. Cannot run
> program \"docker\" (in directory \"/home/kevin/metron/docs/
> incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
> error=2, No such file or directory -> [Help 1]", "[ERROR] ", "[ERROR] To
> see the full stack trace of the errors, re-run Maven with the -e switch.",
> "[ERROR] Re-run Maven using the -X switch to enable full debug logging.",
> "[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 :metron-rpm"],
> "warnings": []}
>
>

Re: Build fails

Posted by Otto Fowler <ot...@gmail.com>.
Do you have docker installed and running?
Are you using the latest master code?
Can you run metron-deployment/scripts/platform_info.sh and include?

if you :

>cd metron-deployment
>mvn package -P build-rpms

you will get better log output

Can you try that ( if you _do_ have docker installed and running ).



On May 21, 2017 at 20:06:17, Kevin Waterson (kevin.waterson@gmail.com)
wrote:

Not sure if this is RPM related or something else??

Thanks
Kevin

TASK [metron-builder : Build Metron RPMs]
**************************************
fatal: [node1 -> localhost]: FAILED! => {"changed": true, "cmd": "cd
/home/kevin/metron/docs/incubator-metron/metron-deployment/playbooks/../../metron-deployment
&& mvn clean package -DskipTests -P build-rpms", "delta": "0:00:03.224565",
"end": "2017-05-22 08:56:54.346028", "failed": true, "rc": 1, "start":
"2017-05-22 08:56:51.121463", "stderr": "", "stdout": "[INFO] Scanning for
projects...\n[INFO]
------------------------------------------------------------------------\n[INFO]
Reactor Build Order:\n[INFO] \n[INFO] metron-deployment\n[INFO]
metron-rpm\n[INFO]
\n[INFO]
------------------------------------------------------------------------\n[INFO]
Building metron-deployment 0.4.0\n[INFO]
------------------------------------------------------------------------\n[INFO]
\n[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
metron-deployment ---\n[INFO] \n[INFO] ---
jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment
---\n[INFO] argLine set to
-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/docs/incubator-metron/metron-deployment/target/jacoco.exec\n[INFO]
\n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment
---\n[INFO] Skipping JaCoCo execution due to missing execution data
file.\n[INFO]
\n[INFO]
------------------------------------------------------------------------\n[INFO]
Building metron-rpm 0.4.0\n[INFO]
------------------------------------------------------------------------\n[INFO]
\n[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ metron-rpm
---\n[INFO] \n[INFO] --- maven-antrun-plugin:1.1:run (default) @ metron-rpm
---\n[INFO] Executing tasks\n     [echo] ******** Displaying value of
property ********\n     [echo] ../../../..\n[INFO] Executed tasks\n[INFO]
\n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-rpm
---\n[INFO] argLine set to
-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker/target/jacoco.exec\n[INFO]
\n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-rpm
---\n[INFO] Skipping JaCoCo execution due to missing execution data
file.\n[INFO] \n[INFO] --- maven-resources-plugin:3.0.1:copy-resources
(copy-rpm-sources) @ metron-rpm ---\n[INFO] Using 'UTF-8' encoding to copy
filtered resources.\n[INFO] Copying 1 resource\n[INFO] Copying 1
resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO]
Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1
resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO]
Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] \n[INFO] ---
exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---\n[ERROR]
Command execution failed.\njava.io.IOException: Cannot run program
\"docker\" (in directory
\"/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
error=2, No such file or directory\n\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)\n\tat
java.lang.Runtime.exec(Runtime.java:620)\n\tat
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)\n\tat
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)\n\tat
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)\n\tat
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)\n\tat
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)\n\tat
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)\n\tat
org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)\n\tat
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\n\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)\n\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\n\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\n\tat
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\n\tat
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\n\tat
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\n\tat
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\n\tat
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\n\tat
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\n\tat
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\n\tat
org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)\n\tat
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)\n\tat
org.apache.maven.cli.MavenCli.main(MavenCli.java:199)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat
java.lang.reflect.Method.invoke(Method.java:498)\n\tat
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\n\tat
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\n\tat
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\n\tat
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\nCaused
by: java.io.IOException: error=2, No such file or directory\n\tat
java.lang.UNIXProcess.forkAndExec(Native Method)\n\tat
java.lang.UNIXProcess.<init>(UNIXProcess.java:247)\n\tat
java.lang.ProcessImpl.start(ProcessImpl.java:134)\n\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\n\t... 30
more\n[INFO]
------------------------------------------------------------------------\n[INFO]
Reactor Summary:\n[INFO] \n[INFO] metron-deployment
.................................. SUCCESS [  0.619 s]\n[INFO] metron-rpm
......................................... FAILURE [  1.250 s]\n[INFO]
------------------------------------------------------------------------\n[INFO]
BUILD FAILURE\n[INFO]
------------------------------------------------------------------------\n[INFO]
Total time: 1.993 s\n[INFO] Finished at: 2017-05-22T08:56:54+10:00\n[INFO]
Final Memory: 21M/623M\n[INFO]
------------------------------------------------------------------------\n[ERROR]
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
(docker-build) on project metron-rpm: Command execution failed. Cannot run
program \"docker\" (in directory
\"/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
error=2, No such file or directory -> [Help 1]\n[ERROR] \n[ERROR] To see
the full stack trace of the errors, re-run Maven with the -e
switch.\n[ERROR] Re-run Maven using the -X switch to enable full debug
logging.\n[ERROR] \n[ERROR] For more information about the errors and
possible solutions, please read the following articles:\n[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\n[ERROR]
<http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException/n[ERROR]>
\n[ERROR] After correcting the problems, you can resume the build with the
command\n[ERROR]   mvn <goals> -rf :metron-rpm", "stdout_lines": ["[INFO]
Scanning for projects...", "[INFO]
------------------------------------------------------------------------",
"[INFO] Reactor Build Order:", "[INFO] ", "[INFO] metron-deployment",
"[INFO] metron-rpm",
"[INFO]
", "[INFO]
------------------------------------------------------------------------",
"[INFO] Building metron-deployment 0.4.0", "[INFO]
------------------------------------------------------------------------",
"[INFO] ", "[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
metron-deployment ---", "[INFO] ", "[INFO] ---
jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment ---",
"[INFO] argLine set to
-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/docs/incubator-metron/metron-deployment/target/jacoco.exec",
"[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @
metron-deployment ---", "[INFO] Skipping JaCoCo execution due to missing
execution data file.",
"[INFO]
", "[INFO]
------------------------------------------------------------------------",
"[INFO] Building metron-rpm 0.4.0", "[INFO]
------------------------------------------------------------------------",
"[INFO] ", "[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
metron-rpm ---", "[INFO] ", "[INFO] --- maven-antrun-plugin:1.1:run
(default) @ metron-rpm ---", "[INFO] Executing tasks", "     [echo]
******** Displaying value of property ********", "     [echo] ../../../..",
"[INFO] Executed tasks", "[INFO] ", "[INFO] ---
jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-rpm ---",
"[INFO] argLine set to
-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker/target/jacoco.exec",
"[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @
metron-rpm ---", "[INFO] Skipping JaCoCo execution due to missing execution
data file.", "[INFO] ", "[INFO] ---
maven-resources-plugin:3.0.1:copy-resources (copy-rpm-sources) @ metron-rpm
---", "[INFO] Using 'UTF-8' encoding to copy filtered resources.", "[INFO]
Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1
resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource",
"[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1
resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource",
"[INFO] Copying 1 resource", "[INFO] ", "[INFO] ---
exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---", "[ERROR]
Command execution failed.", "java.io.IOException: Cannot run program
\"docker\" (in directory
\"/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
error=2, No such file or directory", "\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)", "\tat
java.lang.Runtime.exec(Runtime.java:620)", "\tat
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)",
"\tat
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)",
"\tat
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)",
"\tat
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)",
"\tat
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)",
"\tat
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)",
"\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)", "\tat
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)",
"\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)",
"\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)",
"\tat
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)",
"\tat
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)",
"\tat
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)",
"\tat
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)",
"\tat
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)",
"\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)",
"\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)",
"\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)", "\tat
org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)", "\tat
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)", "\tat
org.apache.maven.cli.MavenCli.main(MavenCli.java:199)", "\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
"\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
"\tat java.lang.reflect.Method.invoke(Method.java:498)", "\tat
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)",
"\tat
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)",
"\tat
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)",
"\tat
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)",
"Caused by: java.io.IOException: error=2, No such file or directory", "\tat
java.lang.UNIXProcess.forkAndExec(Native Method)", "\tat
java.lang.UNIXProcess.<init>(UNIXProcess.java:247)", "\tat
java.lang.ProcessImpl.start(ProcessImpl.java:134)", "\tat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)", "\t... 30 more",
"[INFO]
------------------------------------------------------------------------",
"[INFO] Reactor Summary:", "[INFO] ", "[INFO] metron-deployment
.................................. SUCCESS [  0.619 s]", "[INFO] metron-rpm
......................................... FAILURE [  1.250 s]", "[INFO]
------------------------------------------------------------------------",
"[INFO] BUILD FAILURE", "[INFO]
------------------------------------------------------------------------",
"[INFO] Total time: 1.993 s", "[INFO] Finished at:
2017-05-22T08:56:54+10:00", "[INFO] Final Memory: 21M/623M", "[INFO]
------------------------------------------------------------------------",
"[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on project
metron-rpm: Command execution failed. Cannot run program \"docker\" (in
directory
\"/home/kevin/metron/docs/incubator-metron/metron-deployment/packaging/docker/rpm-docker\"):
error=2, No such file or directory -> [Help 1]", "[ERROR] ", "[ERROR] To
see the full stack trace of the errors, re-run Maven with the -e switch.",
"[ERROR] Re-run Maven using the -X switch to enable full debug logging.",
"[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 :metron-rpm"],
"warnings": []}