留言板

can't create new Liferay plugin project (SOLVED)

Hieu Bach,修改在10 年前。

can't create new Liferay plugin project (SOLVED)

New Member 帖子: 8 加入日期: 14-2-26 最近的帖子
Hello All
when I create new Liferay plugin project on Eclipse Kepler with Liferay SDK 6.2

I got error
Message: Error creating Liferay plugin project.
Exception Stack Trace:
org.eclipse.core.runtime.CoreException: Source 'D:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1393391337364' does not exist
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:171)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:102)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.io.FileNotFoundException: Source 'D:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1393391337364' does not exist
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:165)
... 6 more

More I got log from console screen
[Console output redirected to fileemoticon:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\layouttpl\build.xml
Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
To: D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar
Error getting http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar to D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar

BUILD FAILED
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\layouttpl\build.xml:5: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common-plugins.xml:5: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common.xml:47: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common-ivy.xml:17: java.net.ConnectException: Connection timed out: connect

Total time: 23 seconds
thumbnail
Gregory Amerson,修改在10 年前。

RE: can't create new Liferay plugin project

Liferay Legend 帖子: 1123 加入日期: 10-2-16 最近的帖子
Hieu Bach:
Hello All
when I create new Liferay plugin project on Eclipse Kepler with Liferay SDK 6.2

I got error
Message: Error creating Liferay plugin project.
Exception Stack Trace:
org.eclipse.core.runtime.CoreException: Source 'D:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1393391337364' does not exist
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:171)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:102)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.io.FileNotFoundException: Source 'D:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1393391337364' does not exist
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:165)
... 6 more

More I got log from console screen
[Console output redirected to fileemoticon:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\layouttpl\build.xml
Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
To: D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar
Error getting http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar to D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar

BUILD FAILED
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\layouttpl\build.xml:5: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common-plugins.xml:5: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common.xml:47: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common-ivy.xml:17: java.net.ConnectException: Connection timed out: connect

Total time: 23 seconds


Here is the error you need to fix: Error getting http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar to D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar


Looks like the SDK can't access repo1.maven.org. Does it require a proxy to connect?
Hieu Bach,修改在10 年前。

RE: can't create new Liferay plugin project

New Member 帖子: 8 加入日期: 14-2-26 最近的帖子
Hi Gregory Amerson

Thanks so much
Yes, That's all right. it require a proxy to connect.
So that, I set proxy to connect in build-common-ivy.xml file:

<if>
<not>
<available file="${ivy.home}/ivy-${ivy.version}.jar" />
</not>
<then>
<mkdir dir="${ivy.home}" />
<setproxy proxyhost="Proxy Server" proxyport=" e.g.8080" proxyUser="user proxy to connect" proxyPassword="pass proxy to connect"/>
<get
dest="${ivy.home}"
src="${ivy.jar.url}"
/>
</then>
</if>

Solved
thumbnail
Jay Trivedi,修改在9 年前。

RE: can't create new Liferay plugin project

Regular Member 帖子: 109 加入日期: 12-11-24 最近的帖子
In this case can you please specify the URL for proxy Server.


Regards,
Jay Trivedi
Shreyas Kamthe,修改在9 年前。

RE: can't create new Liferay plugin project

Junior Member 帖子: 58 加入日期: 14-6-9 最近的帖子
Hey there
Can you please specify what values to enter in port,proxy server,username,password ?
or do we need to copy paste the code as it is ?
and where do we paste it in the file ?
I am having the same problem
Partha Nath,修改在9 年前。

RE: can't create new Liferay plugin project

New Member 发布: 1 加入日期: 14-6-25 最近的帖子
It worked for me too.
quang nguyen,修改在9 年前。

RE: i can't create new Liferay plugin project

New Member 帖子: 7 加入日期: 14-8-25 最近的帖子
Hi all,

I have set proxy for ivy setting, but the problem has not sloved emoticon

error log:

Buildfile: M:\xxx\plugins\liferay-plugins-sdk-6.2\portlets\build.xml
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = M:\xxx\plugins\liferay-plugins-sdk-6.2\ivy-settings.xml


plz help me to fix this.
thank all.
thumbnail
Lu Li,修改在9 年前。

RE: i can't create new Liferay plugin project

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Hi quang ,

Can you follow this blog here and see if it can helps you ? try to download the .ivy and put to your sdk root

https://www.liferay.com/zh/community/forums/-/message_boards/message/38695605

Best regards
quang nguyen,修改在9 年前。

RE: i can't create new Liferay plugin project

New Member 帖子: 7 加入日期: 14-8-25 最近的帖子
Hi Lu,

First of all thank for your help!

I have downloaded .ivy from your link then I unzip and put it to sdk folder.


1. download the ".ivy.7zip" file , unzip to and copy it to your sdk folder
2 put .ivy to a location out of sdk and specify it in your build.username.properties file to point this ivy location

For example , my computer username is "liferay" so in my sdk folder the file name is "build.liferay.properties " , i put this ".ivy" file to "C:\Users\liferay" , then open "build.liferay.properties" (under sdk location) and add a line "ivy.home=C:/Users/liferay/.ivy"


But the problem has not fixed emoticon

[ivy:resolve] :: loading settings :: file = M:\xxx\plugins\liferay-plugins-sdk-6.2\ivy-settings.xml
thumbnail
Lu Li,修改在9 年前。

RE: i can't create new Liferay plugin project

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Hi Quang,

Can you post the full error log ? and also what's the version of your SDK ?
quang nguyen,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 7 加入日期: 14-8-25 最近的帖子
Hi Lu,

1. I am using liferay-plugins-sdk-6.2-ce-ga2 for JDK plugin
2. I updated for ivy.home = C:/Users/Administrator/.ivy (Administrator is my computer username)
3. full error log:

Buildfile: M:\xxx\plugins\liferay-plugins-sdk-6.2\portlets\build.xml
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = M:\xxx\plugins\liferay-plugins-sdk-6.2\ivy-settings.xml
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
thumbnail
Lu Li,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Hi quang ,

Can you post the file that you set your proxy ?

Can you try again without setting a proxy and create project and see if you still get the same problem ? Thanks emoticon
quang nguyen,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 7 加入日期: 14-8-25 最近的帖子
Hi Lu,

I have set proxy as:

<if>
		<not>
			<available file="${ivy.home}/ivy-${ivy.version}.jar" />
		</not>
		<then>
			<mkdir dir="${ivy.home}" />	
			<setproxy proxyhost="xxxx" proxyport="xxxx" />
			<get dest="${ivy.home}" src="${ivy.jar.url}" />
		</then>
	</if>




Console output redirected to file:M:\xxx\tools\elipse_workspace\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: M:\xxx\plugins\liferay-plugins-sdk-6.2\portlets\build.xml
    [mkdir] Created dir: C:\UsersAdministratorivy
      [get] Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
      [get] To: C:\UsersAdministratorivy\ivy-2.3.0.jar
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = M:\xxx\plugins\liferay-plugins-sdk-6.2\ivy-settings.xml

BUILD FAILED
M:\xxx\plugins\liferay-plugins-sdk-6.2\portlets\build.xml:5: The following error occurred while executing this line:
M:\xxx\plugins\liferay-plugins-sdk-6.2\build-common-plugins.xml:5: The following error occurred while executing this line:
M:\xxx\plugins\liferay-plugins-sdk-6.2\build-common.xml:47: The following error occurred while executing this line:
M:\xxx\plugins\liferay-plugins-sdk-6.2\build-common-ivy.xml:34: The following error occurred while executing this line:
M:\xxx\plugins\liferay-plugins-sdk-6.2\build-common-ivy.xml:50: java.lang.IllegalArgumentException:[b] ivy.home must be absolute: C:UsersAdministratorivy[/b]

Total time: 1 second



 I updated for ivy.home = C:/Users/Administrator/ivy (Administrator is my computer username)
=> is wrong?

I have removed proxy info but the problem still occurs
thumbnail
Lu Li,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Hi quang ,

From the log it seems that your ivy.home "\" will be escaped , notice that the format should be all "/"
if your ivy.home is " C:\Users\liferay\.ivy" in file system for example
should change to "C:/Users/liferay/.ivy" in your build.$(user.home).properties
quang nguyen,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 7 加入日期: 14-8-25 最近的帖子
Hi Lu,

I am getting error emoticon

- remove/add proxy
- change from C:\Users\liferay\.ivy to "C:/Users/liferay/.ivy" as you suggested
- copy jar file to .ivy folder (include "C:/Users/liferay/.ivy" and jdk folder)

anyway, thanks for your help!
thumbnail
Lu Li,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Can you post the error log you got?
quang nguyen,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 7 加入日期: 14-8-25 最近的帖子
Here is error log

[Console output redirected to file:M:\xxx\tools\elipse_workspace\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: M:\xxx\plugins\liferay-plugins-sdk-6.2\portlets\build.xml
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = M:\xxx\plugins\liferay-plugins-sdk-6.2\ivy-settings.xml
thumbnail
Lu Li,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Hi quang ,

Can you use this SDK I attached here ? It has already include everything inside .Also can you check if you extracted ".ivy " to the right place by comparing it the this one .Let me know if you still get problem , Thanks.
quang nguyen,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 7 加入日期: 14-8-25 最近的帖子
Great!

Thanks you very much, the problem is fixed!
thumbnail
Lu Li,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Hi quang ,

David H Nebinger:
Does it really solve anything by providing an SDK w/ the ivy cache populated? I mean, isn't it more important that he get the proxy stuff right so he'll be able to download artifacts that you don't have in your cache?


David H Nebinger made a good point .Can you help to figure out your proxy problem so you could access to the artifacts in the future ?

Here is the steps may helps you

1.check your build-common-ivy.xml (where you config your proxy ) ,
like you described in above
"<setproxy proxyhost="xxxx" proxyport="xxxx" />"
make sure "proxyhost" is the correct and also port is a valid port number
when you done this , delete your .ivy file in sdk (if exsit) and create a project again , if it still has problem please post the full log

2. check the sites in your ivy-settings.xml (in sdk folder) , check if you can access all the sites there via your proxy

Please let me know if you have any problem and post more details if you can .Many thanks .
thumbnail
David H Nebinger,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Does it really solve anything by providing an SDK w/ the ivy cache populated? I mean, isn't it more important that he get the proxy stuff right so he'll be able to download artifacts that you don't have in your cache?
thumbnail
Lu Li,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
Thanks David for your very practical advice, sorry I'm not familiar with the proxy stuff , could you help him to set it up right if possible ?


Best Regards
Mayank Sharma,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 发布: 1 加入日期: 14-11-14 最近的帖子
Hi Lu,

Can you please share this SDK.
I am getting same issue.

Thanks,
Mayank
thumbnail
Lu Li,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 40 加入日期: 13-5-3 最近的帖子
thumbnail
Suresh Yadagiri,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 29 加入日期: 14-3-24 最近的帖子
Attached Plugin SDK is working fine with LDS 2.2. Thanks for the SDK.
thumbnail
Aayush Bhatnagar,修改在9 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 6 加入日期: 14-5-28 最近的帖子
Lu Li:
Hi quang ,

Can you use this SDK I attached here ? It has already include everything inside .Also can you check if you extracted ".ivy " to the right place by comparing it the this one .Let me know if you still get problem , Thanks.


Hi Lu,

Thanks a ton. This pkg worked like magic.
Can you please explain me what changes did you make?

Thanks in advance
Lakshmipathi G,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 发布: 1 加入日期: 16-10-5 最近的帖子
I am using Liferay SDK 7.0 mam, i am unable to create liferay new plugin project using eclipse, it is taking too much time, but its not going further....please help me ASAP........


Thanks in Advance
thumbnail
Joye Luo,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

Regular Member 帖子: 144 加入日期: 16-5-3 最近的帖子
Hi Lakshmipathi,

Could u give us more details about your problem, such as error log or something else? So we can help u with this problem quickly. And one possible
reason is that you don't have .ivy cache file in your SDK root directory. It will spend a long time to download dependencies.
thumbnail
Andy Wu,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

Regular Member 帖子: 195 加入日期: 15-5-5 最近的帖子
hey , Joye , can you upload the ivy cache some where such as dropbox or google drive and give out an url for others to download ?
thumbnail
Joye Luo,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

Regular Member 帖子: 144 加入日期: 16-5-3 最近的帖子
Here is the link for downlaoding the .ivy cache file. You can download and unzip it into your SDK root directory. Hope that will be help.
thumbnail
Sai Sriharsha Kasturi,修改在5 年前。

RE: can't create new Liferay plugin project (SOLVED)

Junior Member 帖子: 34 加入日期: 12-10-21 最近的帖子
Thanks Lu Li, your plugin SDK resolved my issue
先生 孙,修改在9 年前。

RE: i can't create new Liferay plugin project

New Member 帖子: 2 加入日期: 15-3-2 最近的帖子
quang nguyen:
Hi all,

I have set proxy for ivy setting, but the problem has not sloved emoticon

error log:

Buildfile: M:\xxx\plugins\liferay-plugins-sdk-6.2\portlets\build.xml
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = M:\xxx\plugins\liferay-plugins-sdk-6.2\ivy-settings.xml


plz help me to fix this.
thank all.


after configured proxy server, the log of mine just stoped here like you. I wait about 5 mininutes, then the log rolls to install dependencies.
So my solution is just wait patiently emoticon
Here is my total elapsed time for creating the first project :
BUILD SUCCESSFUL
Total time: 16 minutes 27 seconds
Lee Chamberlain,修改在7 年前。

RE: can't create new Liferay plugin project

Junior Member 帖子: 92 加入日期: 16-5-5 最近的帖子
Hi

Whereabouts in build-common-ivy.xml does this need to be set?

Hieu Bach:
Hi Gregory Amerson

Thanks so much
Yes, That's all right. it require a proxy to connect.
So that, I set proxy to connect in build-common-ivy.xml file:

<if>
<not>
<available file="${ivy.home}/ivy-${ivy.version}.jar" />
</not>
<then>
<mkdir dir="${ivy.home}" />
<setproxy proxyhost="Proxy Server" proxyport=" e.g.8080" proxyUser="user proxy to connect" proxyPassword="pass proxy to connect"/>
<get
dest="${ivy.home}"
src="${ivy.jar.url}"
/>
</then>
</if>

Solved
Rafael Rodrigues,修改在9 年前。

RE: can't create new Liferay plugin project

New Member 帖子: 3 加入日期: 14-8-21 最近的帖子
Gregory Amerson:
Hieu Bach:
Hello All
when I create new Liferay plugin project on Eclipse Kepler with Liferay SDK 6.2

I got error
Message: Error creating Liferay plugin project.
Exception Stack Trace:
org.eclipse.core.runtime.CoreException: Source 'D:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1393391337364' does not exist
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:171)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:102)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.io.FileNotFoundException: Source 'D:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\create\1393391337364' does not exist
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1034)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:927)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:896)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:165)
... 6 more

More I got log from console screen
[Console output redirected to fileemoticon:\LiferayTemp\workspace\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\layouttpl\build.xml
Getting: http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
To: D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar
Error getting http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar to D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar

BUILD FAILED
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\layouttpl\build.xml:5: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common-plugins.xml:5: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common.xml:47: The following error occurred while executing this line:
D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\build-common-ivy.xml:17: java.net.ConnectException: Connection timed out: connect

Total time: 23 seconds


Here is the error you need to fix: Error getting http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar to D:\LiferayTemp\workspace\liferay-plugins-sdk-6.2.0\.ivy\ivy-2.3.0.jar


Looks like the SDK can't access repo1.maven.org. Does it require a proxy to connect?


Hey Gregory Amerson,

I am very much new at Liferay and have a similar problem, but I can't find a reference to maven (and I'm trying to create a standard Liferay ANT plugin), the stack for my error is:

org.eclipse.core.runtime.CoreException: Source 'C:\Users\rfrodrigues\liferay\.metadata\.plugins\com.liferay.ide.sdk.core\create\1409043400472' does not exist
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:182)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:107)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:370)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:334)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.io.FileNotFoundException: Source 'C:\Users\rfrodrigues\liferay\.metadata\.plugins\com.liferay.ide.sdk.core\create\1409043400472' does not exist
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1298)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1191)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1160)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:176)
... 6 more

can you help me?

Thanks,
Rafael
Dheeraj Kumar,修改在10 年前。

i can't create new Liferay plugin project

New Member 帖子: 6 加入日期: 14-3-21 最近的帖子
when I create new Liferay plugin project on Eclipse Kepler with Liferay SDK 6.1 or 6.2

I got error
[Console output redirected to fileemoticon:\Eclipse-Exp\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: D:\Liferay-Portal\liferay-plugins-sdk-6.1.1\portlets\build.xml
[mkdir] Created dir: D:\Liferay-Portal\liferay-plugins-sdk-6.1.1\.ivy
[get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
[get] To: D:\Liferay-Portal\liferay-plugins-sdk-6.1.1\.ivy\ivy-2.3.0.jar
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = D:\Liferay-Portal\liferay-plugins-sdk-6.1.1\ivy-settings.xml



please solve this problem
thumbnail
Yanan Yuan,修改在10 年前。

RE: i can't create new Liferay plugin project

Junior Member 帖子: 89 加入日期: 11-10-8 最近的帖子
Hello Dheeraj,

It seems that this is a network problem when downloading ivy. Here is a link for my temporary ivy cache files, could you unzip this to your plugins sdk folder and then try to create projects? ivy cache link

Hope this would be helpful.
Dheeraj Kumar,修改在8 年前。

Re: [Liferay Forums][English] RE: i can't create new Liferay plugin project

New Member 帖子: 6 加入日期: 14-3-21 最近的帖子
is any eclipse ide available that is include liferay plugins are inbuilt?



On Tue, Apr 1, 2014 at 2:04 PM, Yanan Yuan from liferay.com <
forums@liferay.com> wrote:

> Hello Dheeraj,
>
> It seems that this is a network problem when downloading ivy. Here is a
> link for my temporary ivy cache files, could you unzip this to your plugins
> sdk folder and then try to create projects? ivy cache link<http://ftp.liferay.com/my-ivy-cache.zip>
>
> Hope this would be helpful.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/36337716
> --
> Liferay.com <https://www.liferay.com>
Dheeraj Kumar,修改在8 年前。

Re: [Liferay Forums][English] RE: i can't create new Liferay plugin project

New Member 帖子: 6 加入日期: 14-3-21 最近的帖子
is any eclipse ide available that is include liferay plugins are inbuilt?



On Tue, Apr 1, 2014 at 2:04 PM, Yanan Yuan from liferay.com <
forums@liferay.com> wrote:

> Hello Dheeraj,
>
> It seems that this is a network problem when downloading ivy. Here is a
> link for my temporary ivy cache files, could you unzip this to your plugins
> sdk folder and then try to create projects? ivy cache link<http://ftp.liferay.com/my-ivy-cache.zip>
>
> Hope this would be helpful.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/36337716
> --
> Liferay.com <https://www.liferay.com>
Dheeraj Kumar,修改在8 年前。

Re: [Liferay Forums][English] RE: i can't create new Liferay plugin project

New Member 帖子: 6 加入日期: 14-3-21 最近的帖子
is any eclipse ide available that is include liferay plugins are inbuilt?



On Tue, Apr 1, 2014 at 2:04 PM, Yanan Yuan from liferay.com <
forums@liferay.com> wrote:

> Hello Dheeraj,
>
> It seems that this is a network problem when downloading ivy. Here is a
> link for my temporary ivy cache files, could you unzip this to your plugins
> sdk folder and then try to create projects? ivy cache link<http://ftp.liferay.com/my-ivy-cache.zip>
>
> Hope this would be helpful.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/36337716
> --
> Liferay.com <https://www.liferay.com>
Dheeraj Kumar,修改在8 年前。

Re: [Liferay Forums][English] RE: i can't create new Liferay plugin project

New Member 帖子: 6 加入日期: 14-3-21 最近的帖子
is any eclipse ide available that is include liferay plugins are inbuilt?



On Tue, Apr 1, 2014 at 2:04 PM, Yanan Yuan from liferay.com <
forums@liferay.com> wrote:

> Hello Dheeraj,
>
> It seems that this is a network problem when downloading ivy. Here is a
> link for my temporary ivy cache files, could you unzip this to your plugins
> sdk folder and then try to create projects? ivy cache link<http://ftp.liferay.com/my-ivy-cache.zip>
>
> Hope this would be helpful.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/36337716
> --
> Liferay.com <https://www.liferay.com>
Dheeraj Kumar,修改在8 年前。

Re: [Liferay Forums][English] RE: i can't create new Liferay plugin project

New Member 帖子: 6 加入日期: 14-3-21 最近的帖子
is any eclipse ide available that is include liferay plugins are inbuilt?



On Tue, Apr 1, 2014 at 2:04 PM, Yanan Yuan from liferay.com <
forums@liferay.com> wrote:

> Hello Dheeraj,
>
> It seems that this is a network problem when downloading ivy. Here is a
> link for my temporary ivy cache files, could you unzip this to your plugins
> sdk folder and then try to create projects? ivy cache link<http://ftp.liferay.com/my-ivy-cache.zip>
>
> Hope this would be helpful.
>
>
> To view the thread, follow the link below:
>
> https://www.liferay.com/community/forums/-/message_boards/view_message/36337716
> --
> Liferay.com <https://www.liferay.com>
thumbnail
Yanan Yuan,修改在8 年前。

RE: Re: [Liferay Forums][English] RE: i can't create new Liferay plugin pro

Junior Member 帖子: 89 加入日期: 11-10-8 最近的帖子
Hello Dheeraj,

There is another tool Liferay Developer Studio which contains a liferay portal EE bundle, it will requires a license file.

You can refer to the studio link for more details.
Rahul Dubey,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 10 加入日期: 16-6-18 最近的帖子
Can anyone send the zip file or any link to dwnload .ivy file for liferay-ce-portal-src-7.0-ga2
thumbnail
David H Nebinger,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
It's available from the download menu or you can grab it from sourceforge.net.
Rahul Dubey,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 10 加入日期: 16-6-18 最近的帖子
David H Nebinger:
It's available from the download menu or you can grab it from sourceforge.net.



HI david,
can u please provide the link of menu or source-forge.net

i couldnt find itemoticon

i am using liferay portal 7.0 ga2
i want the zip file of ivy for plugin installation.
as i cannot create plugin
emoticonemoticonemoticonemoticon
thumbnail
David H Nebinger,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Rahul Dubey:
i want the zip file of ivy for plugin installation.


What is that?

Are you looking for perhaps some sort of pre-packaged repository of all liferay dependencies used to build?

That doesn't exist as far as I know. You need a network connection to download the artifacts. The dependencies are not always a fixed set of jars, as you add dependencies to your code you'd need to be able to download them.

If you're sitting behind some firewall, you have 3 options:

  • Set up a company-approved repository proxy that can go to the internet and proxy downloads of dependencies.
  • Use a company-approved http proxy, you should be able to set up the properties to allow the tools to use the proxies and download the dependencies.
  • Use a different computer on the net to do your builds then copy the local repository to your system behind the firewall.


Liferay doesn't really provide a download of all dependencies because that file is truly very large and subject to change on every release (as dependency jars change due to version updates).
Rahul Dubey,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 10 加入日期: 16-6-18 最近的帖子
That's true.
But when i am trying to download the files.it works for a while.. but after some time ..it shows an "Eclipse could not start plug in project.

i have attached the sdk.log file for your reference..

and Thanks a lot ,sir for your valuable time.emoticon
thumbnail
David H Nebinger,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
[ivy:resolve] :: loading settings :: file = C:\Liferay\liferay-sdk plugin\com.liferay.portal.plugins.sdk-7.0\ivy-settings.xml
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 		:: javax.activation#activation;1.1: several problems occurred while resolving dependency: javax.activation#activation;1.1 {default=[default]}:
[ivy:resolve] 	liferay-private: unable to get resource for javax/activation#activation;1.1: res=/javax/activation/activation/1.1/activation-1.1-javadoc.jar: java.net.MalformedURLException: no protocol: /javax/activation/activation/1.1/activation-1.1-javadoc.jar
[ivy:resolve] 	liferay-private: unable to get resource for javax/activation#activation;1.1: res=/javax/activation/activation/1.1/activation-1.1.pom: java.net.MalformedURLException: no protocol: /javax/activation/activation/1.1/activation-1.1.pom


Not sure what settings you have going on here, but this kind of malformed URL is not right. That's what's blocking you from downloading the dependencies.
Rahul Dubey,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 10 加入日期: 16-6-18 最近的帖子
Thanks a lot David.

but i am still struggling with this .
don't know how to proceed.
I guess is the any problem with the jdk??
emoticon
Rahul Dubey,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 10 加入日期: 16-6-18 最近的帖子
David H Nebinger:
[ivy:resolve] :: loading settings :: file = C:\Liferay\liferay-sdk plugin\com.liferay.portal.plugins.sdk-7.0\ivy-settings.xml
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 		:: javax.activation#activation;1.1: several problems occurred while resolving dependency: javax.activation#activation;1.1 {default=[default]}:
[ivy:resolve] 	liferay-private: unable to get resource for javax/activation#activation;1.1: res=/javax/activation/activation/1.1/activation-1.1-javadoc.jar: java.net.MalformedURLException: no protocol: /javax/activation/activation/1.1/activation-1.1-javadoc.jar
[ivy:resolve] 	liferay-private: unable to get resource for javax/activation#activation;1.1: res=/javax/activation/activation/1.1/activation-1.1.pom: java.net.MalformedURLException: no protocol: /javax/activation/activation/1.1/activation-1.1.pom


Not sure what settings you have going on here, but this kind of malformed URL is not right. That's what's blocking you from downloading the dependencies.






I recently tried to create pugin with liferay -plugin-sdk 6.2
And i was successfull .
that worked .
But i am having problem while running the portlet.
It shows the following error.


And Thanks a lot David for all your updates.
Have a nice dayemoticon
Rahul Dubey,修改在7 年前。

RE: can't create new Liferay plugin project (SOLVED)

New Member 帖子: 10 加入日期: 16-6-18 最近的帖子
David H Nebinger:
Rahul Dubey:
i want the zip file of ivy for plugin installation.


What is that?

Are you looking for perhaps some sort of pre-packaged repository of all liferay dependencies used to build?

That doesn't exist as far as I know. You need a network connection to download the artifacts. The dependencies are not always a fixed set of jars, as you add dependencies to your code you'd need to be able to download them.

If you're sitting behind some firewall, you have 3 options:

  • Set up a company-approved repository proxy that can go to the internet and proxy downloads of dependencies.
  • Use a company-approved http proxy, you should be able to set up the properties to allow the tools to use the proxies and download the dependencies.
  • Use a different computer on the net to do your builds then copy the local repository to your system behind the firewall.


Liferay doesn't really provide a download of all dependencies because that file is truly very large and subject to change on every release (as dependency jars change due to version updates).


Hi,
I found that link for directly downloading the plugins
just u need to choose your liferay versions and dwnload the required plugin. Its hereHere plugin