Closed QYuQianchen closed 5 years ago
By following the instruction in the README file, I have encountered the failure:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.306 s
[INFO] Finished at: 2019-04-02T17:55:38+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mahuta-http-api: Could not resolve dependencies for project net.consensys.mahuta:mahuta-http-api:jar:0.3.4-SNAPSHOT: The following artifacts could not be resolved: net.consensys.mahuta:mahuta-indexer-elasticsearch:jar:0.3.4-SNAPSHOT, net.consensys.mahuta:mahuta-core:jar:tests:0.3.4-SNAPSHOT: Failure to find net.consensys.mahuta:mahuta-indexer-elasticsearch:jar:0.3.4-SNAPSHOT in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central_repository has elapsed or updates are forced -> [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/DependencyResolutionException
Hi there, Sorry for the late reply. Since the recent large refactoring of the project. The Wiki is completely out of date and I definitely need to fix this asap.
However, this refactoring now supports a new CI pipeline which publishes the Docker images of the API mahuta-api-http
on DockerHub so you don't need to build, compile and package the project like before to get started.
Please find below a docker-compose example:
docker-compose.yml
on your machine
version: '2'
services:
mahuta: image: gjeanmart/mahuta:latest ports:
"8040:8040" depends_on:
elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2 ports:
ipfs: image: jbenet/go-ipfs ports:
$ docker-compose up
This should startup ElasticSearch, an IPFS node and Mahuta HTTP API.
I followed the wiki to setup Mahuta on my local computer.
After I cloned the repo and went to the mauta-http-api repo, it failed when I tried to
docker-compose -f docker-compose.yml build
. The error is: