Forums de discussion

can't create new Liferay plugin project (SOLVED)

Hieu Bach, modifié il y a 10 années.

can't create new Liferay plugin project (SOLVED)

New Member Publications: 8 Date d'inscription: 26/02/14 Publications récentes
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, modifié il y a 10 années.

RE: can't create new Liferay plugin project

Liferay Legend Publications: 1123 Date d'inscription: 16/02/10 Publications récentes
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, modifié il y a 10 années.

RE: can't create new Liferay plugin project

New Member Publications: 8 Date d'inscription: 26/02/14 Publications récentes
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, modifié il y a 9 années.

RE: can't create new Liferay plugin project

Regular Member Publications: 109 Date d'inscription: 24/11/12 Publications récentes
In this case can you please specify the URL for proxy Server.


Regards,
Jay Trivedi
Shreyas Kamthe, modifié il y a 9 années.

RE: can't create new Liferay plugin project

Junior Member Publications: 58 Date d'inscription: 09/06/14 Publications récentes
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, modifié il y a 9 années.

RE: can't create new Liferay plugin project

New Member Envoyer: 1 Date d'inscription: 25/06/14 Publications récentes
It worked for me too.
quang nguyen, modifié il y a 9 années.

RE: i can't create new Liferay plugin project

New Member Publications: 7 Date d'inscription: 25/08/14 Publications récentes
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, modifié il y a 9 années.

RE: i can't create new Liferay plugin project

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
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, modifié il y a 9 années.

RE: i can't create new Liferay plugin project

New Member Publications: 7 Date d'inscription: 25/08/14 Publications récentes
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, modifié il y a 9 années.

RE: i can't create new Liferay plugin project

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
Hi Quang,

Can you post the full error log ? and also what's the version of your SDK ?
quang nguyen, modifié il y a 9 années.

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

New Member Publications: 7 Date d'inscription: 25/08/14 Publications récentes
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, modifié il y a 9 années.

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

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
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, modifié il y a 9 années.

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

New Member Publications: 7 Date d'inscription: 25/08/14 Publications récentes
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, modifié il y a 9 années.

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

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
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, modifié il y a 9 années.

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

New Member Publications: 7 Date d'inscription: 25/08/14 Publications récentes
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, modifié il y a 9 années.

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

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
Can you post the error log you got?
quang nguyen, modifié il y a 9 années.

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

New Member Publications: 7 Date d'inscription: 25/08/14 Publications récentes
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, modifié il y a 9 années.

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

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
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, modifié il y a 9 années.

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

New Member Publications: 7 Date d'inscription: 25/08/14 Publications récentes
Great!

Thanks you very much, the problem is fixed!
thumbnail
Lu Li, modifié il y a 9 années.

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

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
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, modifié il y a 9 années.

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

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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, modifié il y a 9 années.

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

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
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, modifié il y a 9 années.

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

New Member Envoyer: 1 Date d'inscription: 14/11/14 Publications récentes
Hi Lu,

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

Thanks,
Mayank
thumbnail
Lu Li, modifié il y a 9 années.

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

Junior Member Publications: 40 Date d'inscription: 03/05/13 Publications récentes
thumbnail
Suresh Yadagiri, modifié il y a 9 années.

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

Junior Member Publications: 29 Date d'inscription: 24/03/14 Publications récentes
Attached Plugin SDK is working fine with LDS 2.2. Thanks for the SDK.
thumbnail
Aayush Bhatnagar, modifié il y a 9 années.

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

New Member Publications: 6 Date d'inscription: 28/05/14 Publications récentes
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, modifié il y a 7 années.

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

New Member Envoyer: 1 Date d'inscription: 05/10/16 Publications récentes
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, modifié il y a 7 années.

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

Regular Member Publications: 144 Date d'inscription: 03/05/16 Publications récentes
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, modifié il y a 7 années.

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

Regular Member Publications: 195 Date d'inscription: 05/05/15 Publications récentes
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, modifié il y a 7 années.

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

Regular Member Publications: 144 Date d'inscription: 03/05/16 Publications récentes
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, modifié il y a 5 années.

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

Junior Member Publications: 34 Date d'inscription: 21/10/12 Publications récentes
Thanks Lu Li, your plugin SDK resolved my issue
先生 孙, modifié il y a 9 années.

RE: i can't create new Liferay plugin project

New Member Publications: 2 Date d'inscription: 02/03/15 Publications récentes
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, modifié il y a 7 années.

RE: can't create new Liferay plugin project

Junior Member Publications: 92 Date d'inscription: 05/05/16 Publications récentes
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, modifié il y a 9 années.

RE: can't create new Liferay plugin project

New Member Publications: 3 Date d'inscription: 21/08/14 Publications récentes
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, modifié il y a 10 années.

i can't create new Liferay plugin project

New Member Publications: 6 Date d'inscription: 21/03/14 Publications récentes
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, modifié il y a 10 années.

RE: i can't create new Liferay plugin project

Junior Member Publications: 89 Date d'inscription: 08/10/11 Publications récentes
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, modifié il y a 8 années.

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

New Member Publications: 6 Date d'inscription: 21/03/14 Publications récentes
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, modifié il y a 8 années.

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

New Member Publications: 6 Date d'inscription: 21/03/14 Publications récentes
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, modifié il y a 8 années.

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

New Member Publications: 6 Date d'inscription: 21/03/14 Publications récentes
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, modifié il y a 8 années.

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

New Member Publications: 6 Date d'inscription: 21/03/14 Publications récentes
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, modifié il y a 8 années.

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

New Member Publications: 6 Date d'inscription: 21/03/14 Publications récentes
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, modifié il y a 8 années.

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

Junior Member Publications: 89 Date d'inscription: 08/10/11 Publications récentes
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, modifié il y a 7 années.

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

New Member Publications: 10 Date d'inscription: 18/06/16 Publications récentes
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, modifié il y a 7 années.

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

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
It's available from the download menu or you can grab it from sourceforge.net.
Rahul Dubey, modifié il y a 7 années.

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

New Member Publications: 10 Date d'inscription: 18/06/16 Publications récentes
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, modifié il y a 7 années.

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

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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, modifié il y a 7 années.

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

New Member Publications: 10 Date d'inscription: 18/06/16 Publications récentes
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

Pièces jointes:

thumbnail
David H Nebinger, modifié il y a 7 années.

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

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
[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, modifié il y a 7 années.

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

New Member Publications: 10 Date d'inscription: 18/06/16 Publications récentes
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, modifié il y a 7 années.

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

New Member Publications: 10 Date d'inscription: 18/06/16 Publications récentes
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

Pièces jointes:

Rahul Dubey, modifié il y a 7 années.

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

New Member Publications: 10 Date d'inscription: 18/06/16 Publications récentes
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