gpt4 book ai didi

ant - Liferay Ant 部署失败

转载 作者:行者123 更新时间:2023-12-04 23:47:51 25 4
gpt4 key购买 nike

我在使用 ant deploy 从命令行部署 liferay portlet 和主题时遇到了麻烦;

示例执行:

密码:C:\liferay-plugins-sdk\themes

create.bat deep-blue "深蓝"

cd 深蓝主题

Ant 部署

-> 构建文件:C:\liferay-plugins-sdk\themes\deep-blue-theme\build.xml

-> 编译:

-> 构建失败

-> C:\liferay-plugins-stk\themes\build-common-theme.xml:172: C:\liferay-plugins-sdk\themes\deep-blue-theme\liferay-portal-6.0.6 omcat-6.0 .29webappsROOT\html\themes_unstyled 不存在。

问题似乎出在粗体部分以及路径明显不正确的地方;这个目录在哪里设置?

编辑:

问题是我在 build.{username}.properties 中的 app.server.dir

最佳答案

该错误是由于 ant 构建无法找到 Liferay 安装(其中包含 SDK 所需的项目)的结果。

默认情况下,SDK 中的构建属性的设置假设您的设置如下所示:

- Your Development Directory
- bundles
- data
- deploy
- license
- tomcat-6.0.29
- liferay-plugins-sdk

其中 bundles 包含 Liferay 捆绑分发,包括捆绑的 Tomcat 服务器。

您可以在 SDK 根级别的 build.properties 文件中看到此设置。
#
# Specify the paths to an unzipped Tomcat bundle.
#
app.server.type=tomcat
app.server.dir=${project.dir}/../bundles/tomcat-6.0.29
app.server.deploy.dir=${app.server.dir}/webapps
app.server.lib.global.dir=${app.server.dir}/lib/ext
app.server.portal.dir=${app.server.dir}/webapps/ROOT

建议的更改方法不是编辑 build.properties 的这一部分,而是在名为 build.username.properties 的新文件中创建覆盖条目。 (其中 username 是您计算机帐户上的用户名)。

关于ant - Liferay Ant 部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6269122/

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