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

标签 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秒

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

最佳答案

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

创建一个名为 $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/

相关文章:

eclipse - javax.persistence jar 未加载到 tomcat 中

java - tomcat5 无法在 CentOS 5 上启动并出现 NoClassDefFoundError 异常

tomcat - 如何在 AWS EC2 实例上扩展 Tomcat?

maven-2 - 使用Maven执行Ant任务

java - GWT 应用程序和 LifeRay 门户之间的通信

java - 如何在liferay portlet中获取页面的组织方式?

java - 如何让tomcat爆炸war文件

ant - 如何从 vanilla ant(不是 ws_ant)访问 Websphere 6.1 ant 任务

linux - 如何在 Linux (Redhat CentOS) 服务器上安装 Apache Ant?

使用 IN 运算符的 Liferay 自定义 SQL