5

I have installed liferay-portal-tomcat-6.1.2-ce-ga3-20130816114619181.zip and liferay-plugins-sdk-6.1.1-20130816114619181.zip in same path say "/home/sim/Desktop/LR". And tried to install SDK plugin from http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/installing-the-sdk

When i tried to create portlet

 /Desktop/LR/liferay-plugins-sdk-6.1.1/portlets$ ./create.sh newportlet "My New Portlet" 
   Buildfile: /home/sim/Desktop/LR/liferay-plugins-sdk-6.1.1/portlets/build.xml
   [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
 [get] To: /home/sim/Desktop/LR/liferay-plugins-sdk-6.1.1/.ivy/ivy-2.3.0.jar

then i manually dowloded file ivy-2.3.0.jar

  wget  http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar--2013-09-25 15:15:00--  http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
  Resolving www-proxy.ericsson.se (www-proxy.ericsson.se)... 153.88.253.150
  Connecting to www-proxy.ericsson.se (www-proxy.ericsson.se)|153.88.253.150|:8080... connected.
  Proxy request sent, awaiting response... 200 OK
  Length: 1222059 (1.2M) [application/java-archive]
  Saving to: `ivy-2.3.0.jar'
    100%[=====================================================================================================>] 1,222,059    204K/s   in 5.9s    
  2013-09-25 15:15:06 (203 KB/s) - `ivy-2.3.0.jar' saved [1222059/1222059]

Then i again ran

 /Desktop/LR/liferay-plugins-sdk-6.1.1/portlets$ ./create.sh newportlet "My New Portlet"

Getting No error... It got stuck here..

  Buildfile: /home/sim/Desktop/LR/liferay-plugins-sdk-6.1.1/portlets/build.xml
  [ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
  [ivy:resolve] :: loading settings :: file = /home/sim/Desktop/LR/liferay-plugins-sdk-6.1.1/ivy-settings.xml

Anyone help me to resolve this issue.

4

3 回答 3

3

Plugins SDK 没有卡住,而是下载了所有需要的依赖项。Plugins SDK 需要几兆字节的 jar 文件来构建插件。请注意,当它出现“卡住”时,它实际上会将 jar 下载到/home/sim/Desktop/LR/liferay-plugins-sdk-6.1.1/.ivy/cache/文件夹中。

您应该让该过程完成,然后从现在开始拥有 .ivy/cache 文件夹将包含它需要的所有内容,并且不必再次下载。

您还可以在将来将相同的 .ivy/cache 文件共享/复制到其他文件夹中,以节省下载时间。

于 2013-11-26T04:04:00.287 回答
2

正如 Gregory Amerson 在LifeRay 官方论坛帖子中所说,您可以尝试下载此文件

http://files.liferay.org.es/staged/public-files/liferay-ide/dependencies/files/ivy-cache.zip

您必须解压缩替换.ivyliferay-plugins-sdk 文件夹中的文件夹。

希望这可以帮助。

J。

于 2014-03-14T16:24:18.377 回答
0

如您所说,SDK portlet 安装在

/home/sim/Desktop/LR

但由于某种原因,在 ivy-settings.xml 中查找

/home/esingso/Desktop/LR

所以你的一些设置不一致。

这很可能是由使用多个帐户引起的,例如。就像触发记录为“esingso”而不是“sim”的 ./create.sh 命令

于 2013-09-26T06:54:59.110 回答