question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[build] mvn install in che-dev fails

See original GitHub issue

Description

I am trying to build Che locally, following the description here : https://github.com/eclipse/che/wiki/Development-Workflow#build-che-using-docker

It fails with:

...
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:43 min (Wall Clock)
[INFO] Finished at: 2017-10-11T08:12:29+00:00
[INFO] Final Memory: 307M/1717M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (build-image) on project che-dashboard-war: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "docker" (in directory "/home/user/che-build/dashboard"): error=2, No such file or directory
[ERROR] around Ant part ...<exec failonerror="true" dir="/home/user/che-build/dashboard" executable="docker">... @ 4:85 in /home/user/che-build/dashboard/target/antrun/build-main.xml
...

Reproduction Steps

  • Clone Che
  • checkout 5.18.0
  • run
docker run -it --rm --name build-che \
           -v "$HOME/.m2:/home/user/.m2" \
           -v "$PWD":/home/user/che-build \
           -w /home/user/che-build \
           eclipse/che-dev \
           mvn -DskipTests=true \
               -Dfindbugs.skip=true \
               -Dgwt.compiler.localWorkers=2 -T 1C \
               -Dmdep.analyze.skip=true \
               -Dlicense.skip=true \
               clean install

OS and version:

OS X

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
benoitfcommented, Oct 11, 2017

FYI I’ve updated the help page on the wiki for “docker build”

0reactions
svenefftingecommented, Oct 11, 2017

ok, that seems to be it. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to run maven install? - java - Stack Overflow
As per the Maven installation instructions: Maven is a Java tool, so you must have Java installed in order to proceed.
Read more >
[che-dev] How to run maven build on the project eclipse/che ?
When I try to rum maven build (mvn clean install) on the project "eclipse/che" on branch: "master" I get this error : Failed...
Read more >
Mvn install, tests fail - Dremio Community
When I clone dremio repository and simply try to build it: mvn install it fails. I run the tests on a Mac OX...
Read more >
mvn clean install - a short guide to Maven - Marco Behler
Your build will start from a clean slate. Install will then compile, test & package your Java project and even install/copy your built...
Read more >
How to Setup Maven (what is mvn clean install) - YouTube
This video explains how to set up Maven on Windows and use mvn clean install command on spring bootMicroservices Tutorials here: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found