Fórum

eclipse create plugin project

Marc Lafferriere, modificado 7 Anos atrás.

eclipse create plugin project

New Member Mensagem: 1 Data de Entrada: 04/07/16 Postagens Recentes
hi,

sorry for my english...

use :
eclipse mars 2 with IDE liferay 3.0.1
jre 1.8
liferay 7.01 CE ga2
and liferay sdk for this
.ivy/ivy-2.4.0.jar

i want to create a plugin project in my society, and we use the proxy,

project name i write test (for the moment)
build type : Ant (liferay-plugin-sdk)
plugin type : portlet
(true) include sample code
(false) lauch new portlet wizard after project is created
next

liferay MVC
next

and this i select the sdk location
on the dir sdk:
i create build.{myUserName}.properties
with :
app.server.tomcat.lib.global.dir = C:/liferay-ce-portal-7.0-ga2/tomcat-8.0.32/lib/ext
app.server.tomcat.deploy.dir = C:/liferay-ce-portal-7.0-ga2/tomcat-8.0.32/webapps
app.server.parent.dir = C:/liferay-ce-portal-7.0-ga2
app.server.tomcat.dir = C:/liferay-ce-portal-7.0-ga2/tomcat-8.0.32
app.server.type = tomcat
app.server.tomcat.portal.dir = C:/liferay-ce-portal-7.0-ga2/tomcat-8.0.32/webapps/ROOT
app.server.dir = C:/liferay-ce-portal-7.0-ga2/tomcat-8.0.32
javac.compiler=modern

and in build-common-ivy.xml i write l132 - 144
<if>
<not>
<available file="${ivy.home}/ivy-${ivy.version}.jar" />
</not>
<then>
<mkdir dir="${ivy.home}" />
<setproxy proxyhost="hostproxy" proxyport="portproxy" proxyUser="my user" proxyPassword="mypassword"/>
<mirrors-get
dest="${ivy.home}/ivy-${ivy.version}.jar"
src="${ivy.jar.url}"
/>
</then>
</if>

and i have this in console eclipse:
Buildfile: C:\liferay.portal.plugins.sdk-7.0\portlets\build.xml
[get] Getting: https://cdn.lfrs.sl/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:\.liferay\mirrors\cdn.lfrs.sl\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] Error getting https://cdn.lfrs.sl/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 to C:\.liferay\mirrors\cdn.lfrs.sl\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

BUILD FAILED
C:\liferay.portal.plugins.sdk-7.0\portlets\build.xml:5: The following error occurred while executing this line:
C:\liferay.portal.plugins.sdk-7.0\build-common-plugins.xml:5: The following error occurred while executing this line:
C:\liferay.portal.plugins.sdk-7.0\build-common.xml:57: The following error occurred while executing this line:
C:\liferay.portal.plugins.sdk-7.0\build-common-ivy.xml:143: The following error occurred while executing this line:
C:\liferay.portal.plugins.sdk-7.0\build-common-ivy.xml:94: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"

Total time: 20 seconds

ty for ur help... i don't find a solution for liferay 7.0.1 emoticon (bad search maybe...)
thumbnail
Lovett Li, modificado 7 Anos atrás.

RE: eclipse create plugin project

New Member Postagens: 3 Data de Entrada: 18/01/15 Postagens Recentes
Hi Marc Lafferriere,
<setproxy proxyhost="hostproxy" proxyport="portproxy" proxyUser="my user" proxyPassword="mypassword"/>

For liferay sdk 7.0 will download ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar. If you set proxy it will download this jar from liferay repository.Please make sure you have add liferay repo in your proxy https://repository.liferay.com/nexus/content/groups/public/
Try again hope it can help you.