cms.war - 没有那个文件或目录

cms.war - No such file or Directory

我尝试安装 hippocms 的测试版。我卡在

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45:21 min
[INFO] Finished at: 2017-02-16T15:18:32+01:00
[INFO] Final Memory: 16M/200M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.19:start (cargo-run) on project gogreen: Execution cargo-run of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.19:start failed: Failed to create deployable with implementation class org.codehaus.cargo.container.tomcat.TomcatWAR for the parameters (container [id = [tomcat8x]], deployable type [war]). InvocationTargetException: Failed to parse Tomcat WAR file in [/courierOS-7.x/p.rader/Downloads/developer-trail-11.0.2-iteration-2/cms/target/cms.war]: Failed to find file [/courierOS-7.x/p.rader/Downloads/developer-trail-11.0.2-iteration-2/cms/target/cms.war]: /courierOS-7.x/p.rader/Downloads/developer-trail-11.0.2-iteration-2/cms/target/cms.war (No such file or directory) -> [Help 1]

有什么想法吗?

您在 运行 cargo 之前尝试过全新安装吗?

mvn clean install && mvn -Pcargo.run

编辑:

更现代的做法是:

mvn clean verify

然后cargo.run。

另见 Build Project

今天我重复了mvn clean install -X,效果很好。

对于通过搜索来到这里的所有其他人:-Pcargo.run 使用 tomcat 和 built-in tomcat-users.xml 所以唯一有效的帐户是 admin和密码 admin 就像 tomcat 一样。