Foros de discusión

IDE3.0.1 GA2 Could not execute build using Gradle distribution

Stan X, modificado hace 7 años.

IDE3.0.1 GA2 Could not execute build using Gradle distribution

Regular Member Mensajes: 208 Fecha de incorporación: 28/01/08 Mensajes recientes
Env:

CentOS 7
java version "1.8.0_102"
liferay-ide-eclipse-linux-x64-3.0.1-ga2-201606151031.tar

I am following:

https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/installing-liferay-ide

When I tried to create a new module and click on Finish, I get the following popup message:

Error

Project create error: 0. [ExceptionTransformer.transform]
org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.14-bin.zip'.

---

Some notes:

- JAVA_HOME is set.

- Tried -Dosgi.requiredJavaVersion=1.8 in eclipse.ini

- There is gradle-2.14 in /root/.gradle/wrapper/dists/gradle-2.14-bin/76oc0mnc3ieqtsukq90mp0rxk/gradle-2.14.

- Also tried, “Install Liferay IDE into Eclipse” with Neon. Same error message.

- Tried on Win7. Same error message.

- There is no proxy. I am able to download https://services.gradle.org/distributions/gradle-2.14-bin.zip with wget.
thumbnail
Gregory Amerson, modificado hace 7 años.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
Can you give us the full stack trace?
Miguel Angel Gonzalez, modificado hace 7 años.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

New Member Mensajes: 3 Fecha de incorporación: 4/03/16 Mensajes recientes
I have the same problem. Do you get resolve the problem?
Thank in advance
Miguel Angel Gonzalez, modificado hace 7 años.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

New Member Mensajes: 3 Fecha de incorporación: 4/03/16 Mensajes recientes
I answered myself.

I think there is a problem in liferay IDE and the wizard related to create module don't take proxy eclipse configuration. All work correct when your network conection don't need proxy.

Best Regards
thumbnail
Gregory Amerson, modificado hace 7 años.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
Miguel Angel Gonzalez:
I answered myself.

I think there is a problem in liferay IDE and the wizard related to create module don't take proxy eclipse configuration. All work correct when your network conection don't need proxy.

Best Regards



We will try to add support for proxies in Liferay IDE 3.1 M2
https://issues.liferay.com/browse/IDE-2920
Miguel Angel Gonzalez, modificado hace 7 años.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

New Member Mensajes: 3 Fecha de incorporación: 4/03/16 Mensajes recientes
Thank you.

While the solution comes. I got it to work change manually the property systemProxiesEnable=true in eclipse/configuration/.settings/org.eclipse.core.net.prefs (https://www.eclipse.org/forums/index.php/t/148701/)
Gabor J, modificado hace 7 años.

RE: IDE3.0.1 GA2 Could not execute build using Gradle distribution

New Member Mensajes: 2 Fecha de incorporación: 16/09/16 Mensajes recientes
Another possible reason can be that the gradle build triggered by eclipse is using a JRE instead of a JDK. Check the eclipse error log. You might need to change java runtime in eclipse.ini.