我试图创建一个新的Liferay插件项目,它显示以下错误

时间:2016-10-05 12:36:03

标签: eclipse-plugin liferay portlet

I changed the ivy.jar.url to the above mentioned url and now it came up with    a new error as follows:
[Console output redirected to    

文件:C:\ Rahul13615 \ liferay.metadata.plugins \ com.liferay.ide.sdk.core \ sdk.log] Buildfile:C:\ Rahul13615 \ liferay \ plugins \ portlets \ build.xml
[get]获取:https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar [get] To:C:\ Rahul13615 \ liferay \ plugins.ivy \ org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar   [taskdef]无法从资源org / apache / ivy / ant / antlib.xml加载定义。它无法找到。

建立失败 C:\ Rahul13615 \ liferay \ plugins \ portlets \ build.xml:5:执行此行时发生以下错误:

C:\ Rahul13615 \ liferay \ plugins \ build-common-plugins.xml:5:执行此行时发生以下错误:

C:\ Rahul13615 \ liferay \ plugins \ build-common.xml:47:执行此行时发生以下错误:

C:\ Rahul13615 \ liferay \ plugins \ build-common-ivy.xml:102:执行此行时发生以下错误:

C:\ Rahul13615 \ liferay \ plugins \ build-common-ivy.xml:38:执行此行时出现以下错误:

C:\ Rahul13615 \ liferay \ plugins \ build-common-ivy.xml:48:问题:无法创建任务或输入antlib:org.apache.ivy.ant:settings

原因:名称未定义。 行动:检查拼写。 操作:检查是否已声明任何自定义任务/类型。 操作:检查是否已发生任何/声明。 尚未在此命名空间中定义任何类型或任务

这似乎是一个antlib声明。 操作:检查实现库是否存在于以下位置之一:         -ANT_HOME \ LIB          - IDE Ant配置对话框

总时间:11秒

1 个答案:

答案 0 :(得分:1)

请在下面找到我创建新Liferay插件项目的步骤。 我希望这对你有用:

  1. 我已下载Liferay Developer Studio 3.0.1。 GA2来自: https://web.liferay.com/downloads/liferay-projects/liferay-ide或 ht tps://sourceforge.net/projects/lportal/files/Liferay%20IDE/ 注意:3.0.0版本存在一些已知问题
  2. 我将IDE解压缩到计算机上的C:\ dstudio3
  3. 我从以下位置下载了Liferay SDK: http://www.liferay.com/downloads?559250categoryIds = 559255 (页面底部,附加文件部分)
  4. 我将SDK复制到IDE的文件夹,并根据以下内容创建了一个个性化的build.peter.properties文件: https://web.liferay.com/community/forums/-/message_boards/message/76813485

  5. 我启动了Eclipse并设置了一个新的Liferay Server环境

  6. 在Eclipse中,我创建了一个新的" Liferay插件项目",在向导中,我定义了插件SDK的位置。
  7. 我在插件项目中创建了一个新的Liferay Portlet项目。
  8. 最诚挚的问候, 彼得