我正在尝试在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
我在这里想念什么?
提前致谢!
最佳答案
为了“安装” Ditto,您不必自己构建它(因此您不需要执行mvn clean install
)。
请查看Running Ditto指南。
最简单的方法是从此处记录的Docker compose开始。
您可以找到其他用于部署here的选项(例如Kubernetes,OpenShift,通过Helm进行部署)。
关于maven - 如何安装Eclipse Ditto,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/58972942/