【问题标题】:how to install eclipse Ditto如何安装 Eclipse 同上
【发布时间】:2019-11-21 10:40:46
【问题描述】:

我正在尝试在我的 Ubuntu 18 机器上安装 Eclipse Ditto,安装了 Maven 和 OpenJDK 版本“1.8.0_222”,Docker 版本 18.09.7。 运行命令时:

mvn clean install -Pdocker-build-image \
    -Ddocker.daemon.url=unix:///var/run/docker.sock

我收到以下错误:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.155 s
[INFO] Finished at: 2019-11-21T11:16:47+02:00
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "docker-build-image" could not be activated because it does not exist.
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/home/samia). Please verify you invoked Maven from the correct directory. -> [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/home/samia). Please verify you invoked Maven from the correct directory.
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:85)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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)
[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/MissingProjectException

我在这里错过了什么?

提前致谢!

【问题讨论】:

  • 嗨 Samia,您真的希望自己构建 docker 映像吗?或者您是否正在尝试启动同上的 docker 图像?

标签: maven docker eclipse-ditto


【解决方案1】:

为了“安装” Ditto,您不必自己构建它(因此您无需执行mvn clean install)。 请查看Running Ditto 指南。 最简单的方法是从那里记录的 Docker compose 开始。

您可以找到其他部署选项here(例如 Kubernetes、OpenShift、通过 Helm 部署)。

【讨论】:

    猜你喜欢
    • 2013-10-02
    • 2011-07-03
    • 2012-10-22
    • 2012-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-15
    相关资源
    最近更新 更多