gpt4 book ai didi

tomcat - 在 liferay portlet 中构建 Ant 时出错

转载 作者:行者123 更新时间:2023-11-28 21:55:46 25 4
gpt4 key购买 nike

当我尝试使用 liferay portlet 构建 Ant 时出现以下错误。

    Buildfile: C:\Temp\LifeRay\liferay-plugins-sdk-6.2-ce-ga4-20150416163831865\liferay-plugins-sdk-6.2\portlets\Sample-portlet\build.xml
deploy:

BUILD FAILED
C:\Temp\LifeRay\liferay-plugins-sdk-6.2-ce-ga4-20150416163831865\liferay-plugins-sdk-6.2\build-common.xml:2880: The following error occurred while executing this line:
: The following error occurred while executing this line:
C:\Temp\LifeRay\liferay-plugins-sdk-6.2-ce-ga4-20150416163831865\liferay-plugins-sdk-6.2\build-common.xml:1363: The following error occurred while executing this line:
: The following error occurred while executing this line:
C:\Temp\LifeRay\liferay-plugins-sdk-6.2-ce-ga4-20150416163831865\liferay-plugins-sdk-6.2\build-common.xml:2596: The following error occurred while executing this line:
: The following error occurred while executing this line:
C:\Temp\LifeRay\liferay-plugins-sdk-6.2-ce-ga4-20150416163831865\liferay-plugins-sdk-6.2\build-common.xml:591: The following error occurred while executing this line:
C:\Temp\LifeRay\liferay-plugins-sdk-6.2-ce-ga4-20150416163831865\liferay-plugins-sdk-6.2\build-common.xml:927: C:\Temp\LifeRay\liferay-plugins-sdk-6.2-ce-ga4-20150416163831865\bundles\tomcat-7.0.42\webapps\ROOT\WEB-INF\lib does not exist.

总时长:3秒

需要一些帮助...!提前致谢。

最佳答案

当您没有指定您的 Tomcat 包位置并且它不在默认位置时,通常会发生这种情况。

创建一个名为 $PLUGINS_SDK/build.${user.name}.properties 的文件,其中 ${user.name} 是您系统中的用户名.在该文件中,您可以覆盖 $PLUGINS_SDK/build.properties 文件中任何属性的值。一些被覆盖的常见属性(带有示例值)是:

app.server.dir=/my-dir/appservers/liferay-portal-tomcat-jdk5-trunk
auto.deploy.dir=${user.home}/liferay/deploy
app.server.lib.portal.dir=/my-dir/liferay/trunk/portal-web/docroot/WEB-INF/lib
app.server.portal.dir=/my-dir/liferay/trunk/portal-web/docroot
javac.compiler=modern

更多信息:Liferay wiki - Plugins SDK Preparation

关于tomcat - 在 liferay portlet 中构建 Ant 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31694337/

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