【问题标题】:Error while building Ant in liferay portlet在 liferay portlet 中构建 Ant 时出错
【发布时间】:2015-10-20 01:45:27
【问题描述】:

当我尝试使用 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秒

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

【问题讨论】:

  • 您是否阅读了错误信息?其中提到的文件夹(C:\Temp\LifeRay\liferay-plugins-sdk-6.2-ce-ga4-20150416163831865\bundles\tomcat-7.0.42\webapps\ROOT\WEB-INF\lib)是否存在?你尝试了什么?
  • 是的,我收到了上面提到的错误消息..

标签: tomcat ant liferay liferay-6


【解决方案1】:

这通常发生在您未指定 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

【讨论】:

    猜你喜欢
    • 2014-03-25
    • 1970-01-01
    • 2012-09-10
    • 2015-07-21
    • 2016-06-06
    • 1970-01-01
    • 1970-01-01
    • 2020-05-10
    • 2015-12-30
    相关资源
    最近更新 更多