gpt4 book ai didi

java - 如何运行 Hippo CMS

转载 作者:行者123 更新时间:2023-11-30 04:04:34 26 4
gpt4 key购买 nike

我有带有 SVN 的 Hippo CMS 源代码。幸运的是,它是基于 Maven 的,并且会自动获取所有依赖项。我已经用 Maven 成功安装了它。并且 site.war 和 CMS.war 以及另外两个 jar 文件都已构建。

但我不知道如何运行它。文档说使用 mvn -P cargo.run 运行它.

我已经这样做了,当我尝试浏览到 localhost:8080/cms 时,一切似乎都正常。或localhost:8080/site什么也没有出现。

如果我必须做其他事情,有人可以帮忙吗?或者如果我做错了什么?

最佳答案

您不必进行 SVN 结账。

您可以使用 Maven 原型(prototype)创建一个启动项目,输入:

mvn archetype:generate 
-DarchetypeRepository=http://maven.onehippo.com/maven2
-DarchetypeGroupId=org.onehippo.cms7
-DarchetypeArtifactId=hippo-archetype-website
-DarchetypeVersion=1.07.06

那么你就可以

mvn install 

并开始您的项目

mvn -P cargo.run

或者避免每次都从新的存储库启动

mvn -P cargo.run -Drepo.path=/home/usr/myrepo

这一切都在这里解释: http://www.onehippo.org/7_8/trails/developer-trail/hippo-baby-steps.html

关于java - 如何运行 Hippo CMS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21072540/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com