我按照https://atlas.apache.org/InstallationSteps.html的说明尝试将Apache Atlas安装到docker镜像上。
这是我的Dockerfile:
FROM maven
RUN curl http://apache.mirror.anlx.net/atlas/1.0.0/apache-atlas-1.0.0-sources.tar.gz -o apache-atlas-1.0.0-sources.tar.gz
RUN tar xvfz apache-atlas-1.0.0-sources.tar.gz
RUN cd apache-atlas-sources-1.0.0/
RUN export MAVEN_OPTS="-Xms2g -Xmx2g"
RUN mvn clean -DskipTests install
它失败了:
Step 6/6 : RUN mvn clean -DskipTests install
---> Running in c70d61b2e3ec
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.161 s
[INFO] Finished at: 2018-06-18T21:58:04Z
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/). Please verify you invoked Maven from the correct 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/MissingProjectException
The command '/bin/sh -c mvn clean -DskipTests install' returned a non-zero code: 1
make: *** [docker.build] Error 1
我的目标是评估Apache Atlas,但我的maven知识恰好为零,所以我不知道这里可能出现的问题。有人可以帮忙吗?