【问题标题】:Build Failed in Liferay 6.2在 Liferay 6.2 中构建失败
【发布时间】:2014-05-25 22:03:32
【问题描述】:

在 ubuntu OS 上的 liferay 6.2 中部署 Portlet、主题和布局时,我遇到了构建失败。 控制台消息是:

控制台上的构建失败消息:

BUILD FAILED
/opt/scrum-6.2/plugins/layouttpl/20x80-layouttpl/build.xml:7: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/layouttpl/build-common-layouttpl.xml:5: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common-plugin.xml:5: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common.xml:47: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common-ivy.xml:17: The specified destination is a directory

谁能帮帮我?

【问题讨论】:

  • 这是完整的控制台日志吗?
  • 您使用的是哪个版本的 Ant?它在尝试下载 Ivy JAR 时似乎失败了,然后因为指定的目标是现有文件夹而吓坏了。当前版本的 Ant 应该足够聪明,知道它应该只是将文件下载到文件夹中。
  • 这是完整的控制台日志
  • 我使用的是ant Apache Ant 1.7.1版

标签: java jakarta-ee ant liferay liferay-6


【解决方案1】:

解决方案 -> 编辑 build-common-ivy.xml 并更改第 17 行,使其如下所示:

   dest="${ivy.home}/ivy-${ivy.version}.jar"

另外,它抱怨你需要Ant 1.8,所以一定要升级到1.8。

【讨论】:

    【解决方案2】:

    我已经解决了构建失败的问题

    插件中缺少以下文件:

    ---> build.username.properties 文件

    在.ivy文件夹中,cache文件夹和ivy-2.3.0.jar文件都丢失了。

    我只是在插件中添加了上面的东西。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-04
      • 1970-01-01
      • 1970-01-01
      • 2014-01-26
      • 2016-06-06
      • 2014-03-25
      • 2021-05-18
      相关资源
      最近更新 更多