在liferay portlet中构建Ant时出错

时间:2015-07-29 07:49:03

标签: tomcat ant liferay liferay-6

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

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

1 个答案:

答案 0 :(得分:4)

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